Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

problem with running java file

Thread view: 
mhk - 24 Nov 2005 21:02 GMT
hi,

i m testing a java file and importing jave 3d timer in it as

import com.sun.j3d.utils.timer.J3DTimer;

Now... i have installed jdk1.5.0_05 and i have kept the 3d jar files in

C:\Program Files\Java\jdk1.5.0_05\jre\lib\ext

Now ... my program file compiles fine but gives me following error when i
run it
*********************************
C:\Game\KGPJ Code\ch2Code\Timings>java TimerRes

Exception in thread "main" java.lang.NoClassDefFoundError:
com/sun/j3d/utils/timer/J3DTimer
at TimerRes.j3dTimeResolution(TimerRes.java:43)
at TimerRes.main(TimerRes.java:36)

C:\Game\KGPJ Code\ch2Code\Timings>
*********************************

Please help me in solving this issue, Thanks in advance.
Knute Johnson - 25 Nov 2005 04:11 GMT
> hi,
>
[quoted text clipped - 20 lines]
>
> Please help me in solving this issue, Thanks in advance.

I think you probably need the jar file in the jre/lib/ext directory.  On
windows the compiler and the runtime run out of different directories.

Signature

Knute Johnson
email s/nospam/knute/

mhk - 25 Nov 2005 04:55 GMT
>> hi,
>>
[quoted text clipped - 23 lines]
> I think you probably need the jar file in the jre/lib/ext directory.  On
> windows the compiler and the runtime run out of different directories.

**************************************

well i was missing current dir in classpath and also didnt include dll files
in the path. so doing this solved my issue.... thanks for the reply


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.