Jump to content

Java source not found simple problem

- - - - -

  • Please log in to reply
5 replies to this topic

#1
roei5700

roei5700

    Newbie

  • Members
  • Pip
  • 2 posts
Hey there

so thank you all for helping me out with my problem

and that is the issue -

i was doing some work from Java for dummies and i got stuck when compiling to project in Jcreator its saying javac: file not found: src_mynewproject.txt

also i didn't extract my SRC.zip folder but i dont remember him saying so on the book my docs is in the jdk1.7.0_02 which is inside java on programfiles

that's it thank you all again!;)

#2
SirJames

SirJames

    Newbie

  • Members
  • PipPip
  • 27 posts
What Editor/Compiler are you using with your code?

#3
Norm

Norm

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 327 posts
The javac program works with java source files (have extension of .java).
What is the src_mynewproject.txt file? If it is your source program, rename it to src_mynewproject.java

#4
SirJames

SirJames

    Newbie

  • Members
  • PipPip
  • 27 posts
Try Eclipse,its really simple to use,has a built in compiler so you don't have to mess with the cmd and setting it up is pretty straight forward. :] (google java eclipse

---------- Post added at 03:39 AM ---------- Previous post was at 03:37 AM ----------

Or do what Norm said -_- XD :]

#5
Norm

Norm

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 327 posts
Eclipse hides a lot of details that you should know about before you use it.
I see lots of students that are lost when letting their IDE hide the details of what the javac and java commands do.
I'd suggest you stay with the commandline for a few programs until you understand about what the javac and java commands do and how they use the classpath and packages.

#6
sainath

sainath

    Newbie

  • Members
  • Pip
  • 3 posts
Extract SRC.zip
--look for a file called *.java (* indicates irrespective of the name of the file )
-- you dont find this file , rename the .txt to .java
-- then run "javac" command from command prompt




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users