You are not logged in.
i have tried to install the jre and the jdk from the extra repo's and when i try and install bluej i get this error
Exception in thread "main" java.lang.NoClassDefFoundError: bluej-221/jar
Caused by: java.lang.ClassNotFoundException: bluej-221.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
i have tried reinstalling the jre and the jdk but that didnt fix anything. I also tried installing from the jre and jdk packages on the sun website.
Offline
1. bluej-221.jar isn't important file. It's a library. Not part of JRE or JDK.
2. Error message says that you put filename instead of classname.
Offline
i was trying to run "java bluej-221.jar" and that was the error i got. as i was told this is the way to install bluej from the bluej site. I had java and bluej installed once befor but bluej went bonkers saying it couldnt find "system library" for system.out.println and when i tried to reinstall java came back with that message. so i reinstalled java.
Offline
I think it should be:
java -jar <your_file>.jar
Welcome to the forums.
Last edited by skottish (2008-05-01 00:26:37)
Offline
thanks Skottish, it would appear that the command "java -jar bluej-221.jar" worked but i still get an error in bluej when i try and compile a simple class that uses "system.out.println()" saying "Package system does not exist". does anyone know the cause of this? thanks.
Offline
Ok now i just fell really stupid, it would appear that i for got a capital "S" in system and that i went through reinstalling java for no apparent reason. thanks for all your help guys sorry about my own incompetence. but i have most definitely learnt something.
Offline