![]() |
|
Problems using Java. - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Java, JVM, & JRE (https://sinister.li/Forum-Java-JVM-JRE) +--- Thread: Problems using Java. (/Thread-Problems-using-Java) Pages:
1
2
|
Problems using Java. - greybat163 - 01-03-2014 Hello there, I am an absolute newbie in Java and have no knowledge of it, I basically wanted to install JDK and JRE on my PC so that I can learn a bit. Can you guys please provide me with a direct link of it?? I too can Google and get it but my system config. is Win8 Pro x64 so is it possible for me to use it on my OS?? RE: Problems using Java. - Deque - 01-03-2014 Just download the JDK, it already contains a JRE. Get it from here (Windows x64 Download): http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Installation instructions are here: http://docs.oracle.com/javase/7/docs/webnotes/install/windows/jdk-installation-windows.html How do you want to develop with Java? If you use an IDE like Eclipse, you don't need a JDK. And yes, you can use it from your OS. RE: Problems using Java. - shimmy568 - 01-03-2014 if you want a video for the installation and tutorials i would recommend thenewboston here is his link for the JDK installation and here is his beginner Java tutorials RE: Problems using Java. - Slarek - 01-03-2014 @shimmy568 @Deque has a pretty strong opinion about those video tutorials haha RE: Problems using Java. - shimmy568 - 01-03-2014 (01-03-2014, 02:42 PM)Slarek Wrote: @shimmy568 good or bad? :Footinmouth: RE: Problems using Java. - Slarek - 01-03-2014 (01-03-2014, 02:45 PM)shimmy568 Wrote:(01-03-2014, 02:42 PM)Slarek Wrote: @shimmy568 Bad, those videos are full of flaws.:Ambivalent: RE: Problems using Java. - greybat163 - 01-06-2014 (01-03-2014, 02:22 PM)Deque Wrote: Just download the JDK, it already contains a JRE. Hey I downloaded the JDK and changed my OS now its x82 and I got the JDK for x82 but the exe file to open java ain't working.... When I try to open java.exe (C:\Program Files\Java\jdk1.7.0\bin) I see a batch file which opens shows some codes and closes immediately. RE: Problems using Java. - The Real Slim Shady - 01-06-2014 (01-06-2014, 11:46 AM)greybat163 Wrote:(01-03-2014, 02:22 PM)Deque Wrote: Just download the JDK, it already contains a JRE. 1. its x86 - not x82 2. The application java.exe is not a graphical one. You access it via a command line where you specify what Java application you want to run. example C:\Users\Administrator\Projects\proj1\> java.exe -jar proj1.jar would run the jar file. When you just double click on java.exe it has nothing to do and the cmd.exe default action is to close. which is why it just flashes. RE: Problems using Java. - Deque - 01-06-2014 (01-06-2014, 11:46 AM)greybat163 Wrote:(01-03-2014, 02:22 PM)Deque Wrote: Just download the JDK, it already contains a JRE. You need instructions how to compile and run code properly then. Open your terminal. Navigate to the folder where your .java file is. Then type (replace Hello.java with the name of your source file) Code: javac Hello.javaIf you get any errors at this point, set the JAVA_HOME environmental variable properly. javac is the compiler, which will compile your .java file into a .class file. The .class is bytecode which can be run by the JVM. In order to run it you use java.exe: Code: java HelloRE: Problems using Java. - The Real Slim Shady - 01-06-2014 (01-06-2014, 01:40 PM)Deque Wrote:(01-06-2014, 11:46 AM)greybat163 Wrote:(01-03-2014, 02:22 PM)Deque Wrote: Just download the JDK, it already contains a JRE. You're his own personal Google. I mean like... if he cant find out simple information like that how is he ever going to learn the actual language?? lol |