You are not logged in.

#1 2008-04-30 11:52:35

lachiefin
Member
Registered: 2008-04-30
Posts: 9

important java files missing?

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

#2 2008-04-30 21:10:29

skipper13
Member
From: Kharkiv, Ukraine, QTH KN89DX
Registered: 2006-11-27
Posts: 67
Website

Re: important java files missing?

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

#3 2008-04-30 22:59:17

lachiefin
Member
Registered: 2008-04-30
Posts: 9

Re: important java files missing?

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

#4 2008-05-01 00:26:12

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: important java files missing?

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

#5 2008-05-01 04:29:28

lachiefin
Member
Registered: 2008-04-30
Posts: 9

Re: important java files missing?

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

#6 2008-05-01 08:05:06

lachiefin
Member
Registered: 2008-04-30
Posts: 9

Re: important java files missing?

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

Board footer

Powered by FluxBB