Hello,
I am just starting to branch out into using different classes with my java as at uni i have to use a couple of special classes for two of my modules..
ok, so iv done this work in the labs at uni, so i know the files im trying to compile do actually compile and run.. however im having such a hard time getting them to 'see' the librarys, .jar files at home.
Last year i just used emacs and cmd compilation, this year we are using net beans.. so i run netbeans (3.6) and first hurdle.. my old programs that compiled and ran at the cmd line now dont work in netbeans... what the hell!? Compiles, builds, just wont execute.. in a simple example iv been testing it on hello world and it just throws the error
java.lang.NoClassDefFoundError: Hello
Exception in thread "main"
same exact code compiles and runs at cmd, so i think iv got a netbeans setting wrong.. ( i hate it anyway)
So iv decided to scrap netbeans! Am now just going to work with a txt editor.. its not like i do any level of development that needs a tool like that anyway..
my question is, how do i set up my machine so that the programs i compile at the comand line can automatically find the new .jar files? I have my classpath set and so i tried putting the files in C:\Program Files\j2sdk1.4.2_04\bin but that didnt work..
do i need to change or add soemthing to my environmental variables again ? (win XP)
alternatively, if in your wisdom u believe it a good idea for continued netbeans use? please advise me on how to get rid of this silly error.. im pretty sure its just an option somewhere, but im very unfamiliar with netbeans
cheers for reading all that
Chris
I am just starting to branch out into using different classes with my java as at uni i have to use a couple of special classes for two of my modules..
ok, so iv done this work in the labs at uni, so i know the files im trying to compile do actually compile and run.. however im having such a hard time getting them to 'see' the librarys, .jar files at home.
Last year i just used emacs and cmd compilation, this year we are using net beans.. so i run netbeans (3.6) and first hurdle.. my old programs that compiled and ran at the cmd line now dont work in netbeans... what the hell!? Compiles, builds, just wont execute.. in a simple example iv been testing it on hello world and it just throws the error
java.lang.NoClassDefFoundError: Hello
Exception in thread "main"
same exact code compiles and runs at cmd, so i think iv got a netbeans setting wrong.. ( i hate it anyway)
So iv decided to scrap netbeans! Am now just going to work with a txt editor.. its not like i do any level of development that needs a tool like that anyway..
my question is, how do i set up my machine so that the programs i compile at the comand line can automatically find the new .jar files? I have my classpath set and so i tried putting the files in C:\Program Files\j2sdk1.4.2_04\bin but that didnt work..
do i need to change or add soemthing to my environmental variables again ? (win XP)
alternatively, if in your wisdom u believe it a good idea for continued netbeans use? please advise me on how to get rid of this silly error.. im pretty sure its just an option somewhere, but im very unfamiliar with netbeans
cheers for reading all that
Chris