+ 1

Compiling and running program on windows java

so im building programm hello world in eclipse and I have to make packages and how tthis packages affect classpath ?because I cant run programs from command line because class couldnt be find or loaded. when I delete a package name from .java file I can compile and run everything correct. please help me cuz im novice

23rd Mar 2017, 5:06 PM
Bartłomiej Puka
Bartłomiej Puka - avatar
7 Antworten
+ 9
Now I'm just fed up, Search it on Google...Huh!
23rd Mar 2017, 5:26 PM
Dev
Dev - avatar
+ 8
On the menu bar(on top of eclipse), select help>welcome. There you'll see an option for creating your first Hello World project...(it'll guide you):)
23rd Mar 2017, 5:15 PM
Dev
Dev - avatar
+ 8
After you have completed your coding, just press ctrl+s and it'll compile then to execute it right click on your code and select run as:)
23rd Mar 2017, 5:20 PM
Dev
Dev - avatar
+ 4
Google had it all:) But you may try open the CMD from the eclipse package file which have the . java source code.
23rd Mar 2017, 5:42 PM
Heng Jun Xi
Heng Jun Xi - avatar
+ 1
there is no such thing as first hello program at my eclipse I just want to know how to compile my programs when they got package line at top of the code
23rd Mar 2017, 5:18 PM
Bartłomiej Puka
Bartłomiej Puka - avatar
+ 1
sure dayve, it runs in eclipse but I want run in cmd :)
23rd Mar 2017, 5:22 PM
Bartłomiej Puka
Bartłomiej Puka - avatar
0
thanks for answers:)
23rd Mar 2017, 10:12 PM
Bartłomiej Puka
Bartłomiej Puka - avatar