I have RedHat Linux 8 and java jre1.4.2. I can run all *.jar applications I have tried (using java -jar) except bnj and javadoc. I used setenv to assign $BNJDIR to the install directory, $CLASSPATH is not defined, but this is the error I get for both:
[rworthin@worms ~]$ java -jar bnj-2.0-alpha-20030820.jar
Failed to load Main-Class manifest attribute from
bnj-2.0-alpha-20030820.jar
[rworthin@worms ~]$ java -jar javadoc.jar
Failed to load Main-Class manifest attribute from
javadoc.jar
Any ideas?
Also, where is the bnj script mentioned in the release notes? I don't find that anywhere?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You must unjar the jar file first into an empty directory. Then use the supplied build script to build it. After that, invoke bnj script to run it.
Example:
Assuming you put the bnj jar file in your home dir
[mine@mycomp ~] mkdir bnj
[mine@mycomp ~] cd bnj
[mine@mycomp bnj] jar xvf ../bnj-2.0-alpha-20031105.jar .
[mine@mycomp bnj] ./build
[mine@mycomp bnj] ./bnj
Note: You need to only do this once. Next time, you can just go to the bnj directory and invoke the bnj script as shown in the last line of the example above.
I have RedHat Linux 8 and java jre1.4.2. I can run all *.jar applications I have tried (using java -jar) except bnj and javadoc. I used setenv to assign $BNJDIR to the install directory, $CLASSPATH is not defined, but this is the error I get for both:
[rworthin@worms ~]$ java -jar bnj-2.0-alpha-20030820.jar
Failed to load Main-Class manifest attribute from
bnj-2.0-alpha-20030820.jar
[rworthin@worms ~]$ java -jar javadoc.jar
Failed to load Main-Class manifest attribute from
javadoc.jar
Any ideas?
Also, where is the bnj script mentioned in the release notes? I don't find that anywhere?
Thanks!
Hi.
You must unjar the jar file first into an empty directory. Then use the supplied build script to build it. After that, invoke bnj script to run it.
Example:
Assuming you put the bnj jar file in your home dir
[mine@mycomp ~] mkdir bnj
[mine@mycomp ~] cd bnj
[mine@mycomp bnj] jar xvf ../bnj-2.0-alpha-20031105.jar .
[mine@mycomp bnj] ./build
[mine@mycomp bnj] ./bnj
Note: You need to only do this once. Next time, you can just go to the bnj directory and invoke the bnj script as shown in the last line of the example above.
Please register to our forum at Yahoo Groups:
http://groups.yahoo.com/group/bndev
to ensure a more promptly reply.
Hope this helps,
-- Roby