Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: java compilation error help

06 Jul 2017   #1
qpod25

windows 7 ultimate 322 bits
 
 
java compilation error help

I need help to configure my pc/laptop for java pros
i have installed latest jdk at this location
D:\Program Files\Java\jdk1.8.0_131 I have set the path environment variable to the following D:\Program Files\Java\jdk1.8.0_131\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROO T%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Skype\Phone\
There is no CLASSPATH variable in my Environment variables I have set JAVA_HOME environment system variable as D:\Program Files\Java\jdk1.8.0_131
I have saved this program named First
Public class First {
Public static void main (String [] args) {
System.out.println ("First Java application");
}
}
In c:\java Directory with name First.java with ANSI encoding And saved HelloWorld program in the same directory. HelloWorld File is
public class HelloWorld { public static void main(String[] args)
{ System.out.println("Hello world!");
}
}
But when I go to c:\java directory And write javac First.java I receive this error message Javac:file not found:First.java Usage:javac Use –help for a list of possible options When I use java First command I receive the following error message Error:could not find or load main class First When I use command Javac HelloWorld.java It successfully executes When I use command java HelloWorld it successfully executes and gives the desired result which is Hello World! Please tell me why the first java application doesn`t executes successfully and gives errors While the second application executes successfully.


My System SpecsSystem Spec
.
Reply

 java compilation error help




Thread Tools




Similar help and support threads
Thread Forum
CD Burning Software Can't Add Music Files To Compilation To Burn CDs
Hi.....happy to be here. Let me first say what this problem is NOT. My cd/dvd burner WORKS. I can burn dvds using clone dvd and others. I can import dvds and cds to my computer and play them, edit them, etc etc. I have not installed any new hardware or even software that I know of with the...
Music, Pictures & Video
Java Error : java.lang.RuntimeException when Updating Vuze
Hello to everyone! I am currently experiencing this Java problem that I only encounter when updating my Vuze Bittorrent Client. I am just updating it to newer version but every time I try, the error pops up. The complete error is: "An error occurred: java.lang.RuntimeException:...
Software
Possible JAVA Error?, Cannot run any programs requiring JAVA?
Evening all, first post... Hopefully someone could help, Everything was working fine yesterday (05/06/2013) then when i turn on today (06/06/2013) i cannot run any applications that are running java. For example, firefox uses JAVA, but when i start firefox, it crashes..... heres the...
Software
windows 7 compilation 7601
Installed windows 7 (Spanish Version) on my friends computer and now Im getting this message on the right hand side bottom corner of the desktop and the screen turned black. "windows 7 compilation 7601 this copy of windows is not original" How do I get rid of it ? Please help, Thanks ...
Windows Updates & Activation


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:39.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App