Login Register






Problems using Java. filter_list
Author
Message
Problems using Java. #1
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??

Reply

RE: Problems using Java. #2
Just download the JDK, it already contains a JRE.
Get it from here (Windows x64 Download): http://www.oracle.com/technetwork/java/j...80260.html

Installation instructions are here: http://docs.oracle.com/javase/7/docs/web...ndows.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.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Problems using Java. #3
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
"The past does not affect what you will become it only affects who you are."

Reply

RE: Problems using Java. #4
@shimmy568
@Deque has a pretty strong opinion about those video tutorials haha


Reply

RE: Problems using Java. #5
(01-03-2014, 02:42 PM)Slarek Wrote: @shimmy568
@Deque has a pretty strong opinion about those video tutorials haha

good or bad? :Footinmouth:
"The past does not affect what you will become it only affects who you are."

Reply

RE: Problems using Java. #6
(01-03-2014, 02:45 PM)shimmy568 Wrote:
(01-03-2014, 02:42 PM)Slarek Wrote: @shimmy568
@Deque has a pretty strong opinion about those video tutorials haha

good or bad? :Footinmouth:

Bad, those videos are full of flaws.:Ambivalent:


Reply

RE: Problems using Java. #7
(01-03-2014, 02:22 PM)Deque Wrote: Just download the JDK, it already contains a JRE.
Get it from here (Windows x64 Download): http://www.oracle.com/technetwork/java/j...80260.html

Installation instructions are here: http://docs.oracle.com/javase/7/docs/web...ndows.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.

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.
PM me if you need HELP ! Newbie questions accepted! :Thumbs-Up:
http://www.hackcommunity.com/member.php?...rrer=57932

Reply

RE: Problems using Java. #8
(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.
Get it from here (Windows x64 Download): http://www.oracle.com/technetwork/java/j...80260.html

Installation instructions are here: http://docs.oracle.com/javase/7/docs/web...ndows.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.

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.

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.

Reply

RE: Problems using Java. #9
(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.
Get it from here (Windows x64 Download): http://www.oracle.com/technetwork/java/j...80260.html

Installation instructions are here: http://docs.oracle.com/javase/7/docs/web...ndows.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.

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.

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.java

If 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 Hello
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Problems using Java. #10
(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.
Get it from here (Windows x64 Download): http://www.oracle.com/technetwork/java/j...80260.html

Installation instructions are here: http://docs.oracle.com/javase/7/docs/web...ndows.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.

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.

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.java

If 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 Hello

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

Reply