Results 1 to 4 of 4
- 02-04-2009, 07:03 PM #1
Member
- Join Date
- Feb 2009
- Location
- Denver
- Posts
- 1
- Rep Power
- 0
Location of java class libraries on Sun
Hello everyone. I'm a brand new java programmer so be gentle with me! I'm working my way through "Sam's Teach Yourself Programming with Java" (up to chapter 15) and feel like so far everything is understandable. I've been running my programs on my PC and thought I'd try one on my Sun machine for fun, since that's where I ultimately want to run anyway. My program compiled w/o problem, but gave the following error when running:
Exception in thread "main" java.lang.NoClassDefFoundError
My research of this error seems to indicate that Solaris can't find the java.awt and javax.swing libraries. I can't find them and no one in the IT group seems to know either.
Does anyone know where these libraries are normally installed on a Sun machine so that I can specify that location with the -classpath option when I run my programs?
Thanks,
Paul Hudgens
Denver
- 02-04-2009, 07:45 PM #2
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 13
don't think this error is related to swing or awt. your problem might be with just the naming of your class and java file. what exactly are they?
- 02-04-2009, 08:40 PM #3
have you tested out a simple hello world program on the sun machine?
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
- 02-05-2009, 04:45 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 26
As emceenugget says, this is not related to Swing/AWT libraries.
Do you try the same class on both PCs? Try a simple class on Sun machine, like hello world. Still you get the same issue, check the class path setting up correctly. It can be the issue here.
Similar Threads
-
digital sign libraries
By Shuru in forum Advanced JavaReplies: 4Last Post: 11-07-2008, 08:01 AM -
How I build my own libraries of classes/methods in java ?
By lse123 in forum New To JavaReplies: 3Last Post: 10-12-2008, 02:49 PM -
Java Extract PDF data from location XY
By Unite in forum Advanced JavaReplies: 1Last Post: 06-30-2008, 01:31 PM -
cannot find symbol symbol : class Item location: package platypos.services.order
By officialhopsof in forum New To JavaReplies: 3Last Post: 05-01-2008, 08:30 AM -
PoJoe Component Libraries 1.1
By levent in forum Java SoftwareReplies: 0Last Post: 06-08-2007, 10:23 AM
Bookmarks