Want this question answered?
in Windows : specify environment variable as classpath orset classpath="list of directories" e.g. set classpath="C:\java\lib"in Linux export CLASSPATH="your classpath" e.g. export CLASSPATH="/home/java/lib"
the short answer is that it does. assuming you have java installed and your path set, it's as easy as javac javafilename.java java javafilename or if you have it as a jar file java -jar jarfilename.jar
to compile and run java program you need to set path and classpath path refers to binary used to compile and run java program i.e. "javac" for compilation and "java" for execution
It's an environment variable that stores the paths of commonly used executables. All OSes have this set, even on Windows.
You need to set The CLASSPATH variable which is an argument set on the command-line that tells the Java Virtual Machine where to look for user-defined classes and packages in Java programs. Syntax is java -classpath "path to the packages". Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. To set the PATH permanently, add the full path of the j2sdk1.4.2_version\bin directory to the PATH variable. -sravyaa
You can set up file sharing between windows 7 and Linux mint 16 by simply installing the Ext2 Installable File System on windows which allow windows to read and write into the Linux file system.
1. install JdK 2. include JDK_HOME/bin in your PATH environment variable
Open command window "cmd" from Windows prompt. Type in "javac" in the window. The command should execute giving full usage of javac and its options. If you get an error message saying that "Javac is not a recognized as an internal or external command", than the Path has not been set.
if you are using the IDE then there is no need to set class path, ant you are using Command prompt to run the java program then you need to set the class path where the class (which is going to be used in your program) is actually located,use the following command:set calsspath=%classpath%;actual_path_of the class;we cancall more than two class by using this command by using separator (,)
In Windows:Copy the lib path of the java jdk from where it is installed.Open command promt.Type the following command.set CLASSPATH=Example:C:\>set classpath=C:\Java\jdk1.6.0_03\lib
By default Java is set to automatically check for updates. Disabling this depends on your platform. Windows users can disable it via the Java options in the control panel.
You can. But the Windows installation does not put an entry into it's boot menu, so you have to manually copy a boot sector, and modify the boot menu so you can boot Linux. Linux distributions expect that you may want to dual-boot, so they detect Windows and set up an option for it automatically. For convenience's sake, it is far easier to install Windows first.