Welcome Guest ( Log In | Register )




                Web Hosting Guide

2 Pages V   1 2 >  
Reply to this topicNew Topic
Setting Up Java Correctly
divinity
post Mar 3 2008, 10:19 PM
Post #1


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 9
Joined: 3-March 08
Member No.: 28,877


First thing, I know the pictures say update 3, I'll update them to 4 soon...

Since there's been alot of people saying this bot doesn't work!1!1!!elevenone1!11exclamination! I'll tell you how to set up your Java, correctly

Before I say anything, if you get this problem
Exception in thread "main" java.lang.NoClassDefFoundError: mudclient
press any key to continue. . .

This means you have set up your Java incorrectly, follow the tutorial properly

Also if you are not an Administrator on your computer you can't change the Enviromental Variables.

If you get this however:

'javac' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

Just follow this tutorial smile.gif

Okay, first we need to download Java, the correct version
so click this link. http://java.sun.com/j2se/1.5.0/download.jsp
and download JDK 5.0 Update 4: The J2SE Development Kit (JDK) supports creating J2SE applications.
[img]
http://img178.imageshack.us/img178/949/javatut0kd.png[/img]

Now choose the download which is correct for your Operating System, for example if you are using Windows, choose Windows, if your using Linux, choose Linux. I use Windows, and the majority here do as well. If you don't, well I dunno what you need to Install.



When you finish the download, restart if you have to restart, but I didn't well run the Install, if you don't know how to do this, you should not be doing java.
Now we gotta set up the Path, so go to Control Panel. (Start>Control Panel)
Then, System, and Advanced. Then click Enviromental Variables.


Then we look down until we find PATH, then click on it and press the edit button


Then we put the Path to the Java folder. If you didn't change the folder and saved it into Program Files the folder would be: C:\Program Files\Java\JDK1.5.0_04\bin



And your done! If you get anymore problems leave a post!
Go to the top of the page
 
+Quote Post
Feelay
post Mar 6 2008, 06:22 PM
Post #2


Kinda N00B
Group Icon

Group: Members
Posts: 235
Joined: 13-January 08
From: Sweden
Member No.: 27,579


Very Good Tutorial (and correct tongue.gif). When I was doing this the first time, it took me ages to find a tutorial that told you how to do it wink.gif I am sure this will help many people. Thank you. But.. I am not 100% sure, but shouldn't this be in the tutorials section =?
Go to the top of the page
 
+Quote Post
sparkx
post Mar 6 2008, 10:53 PM
Post #3


Sparkx
Group Icon

Group: [HOSTED]
Posts: 376
Joined: 11-October 06
From: Dana Point, CA, USA
Member No.: 16,496
myCENTs:55.07


Installing JDK is pretty easy if you read the documentation (provided with each release). Java is ok its just that I haven't found any good online tutorials for it (advanced loaders ect). Its not like C++ where when you type in 3D C++ to Google and you get millions of results. People just would rather give you their engines then to just teach you to do it for yourself. I would recomend if people really want to learn java they should look for a book or take a class.

Anyway back on topic... Divinity you and I both know this but you might want to remind people that are new to java to backup what they have in their environment PATH variable before editing it (you know just incase they mess up and edit the wrong thing). Other then that, this is a very good tutorial for people looking to work with java.
Freelay this could be located here or in the tutorial section, just not exactly sure if it is long enough. But either way people should be able to find it.

Thanks,
Sparkx
Go to the top of the page
 
+Quote Post
xboxrulz
post Mar 6 2008, 11:48 PM
Post #4


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 3,051
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233
myCENTs:38.62


You can just use NetBeans IDE for compiling Java manually, because your JDK does come with javac anyways.
Go to the top of the page
 
+Quote Post
java-area
post Mar 7 2008, 06:12 PM
Post #5


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 47
Joined: 4-February 08
Member No.: 28,119


JAVA has different installation kits for different users. Many last kits (with installation instructions) can be found here: http://java.sun.com/javase/downloads/index.jsp

But one thing is important : which kit to install? The answer depends on your needs!

1. When you are going only to run Java desktop application, you will be probably happy with minimal installation: Java Runtime Environment (JRE) 6
Take JRE installation kit according your operation system (Windows, Linus etc.).
After installation, do not forget to dooble check environment variable PATH.
For example, if you are installing Java on Windows in directory C:\Program Files\Java\jre1.6.0_03, environment variable PATH should contain the path
C:\Program Files\Java\jre1.6.0_03\bin
- windows operational environment should know location of java.exe, needed for running ANY Java program.

2. When you are going to develop Java desktop applications, you need to install more advanced kit - JDK 6.
This kit includes JRE, that's way you do NOT need to install JRE separately.
It is good idea to double check environment variable PATH (example, PATH=...C:\Program Files\Java\jdk1.5.0_11\bin... ), but you can also set up the environment variable JAVA_HOME, used by some Java Development Environments and by other tools (example, JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11).

If you do not have any Java development tools on your local machine, you can install the kit JDK 6 Update 5 with NetBeans 6.0.1.
It is the same like JDK, but includes development tool NetBeans - good point to start studying Java from zero!

3. Finally, when you are going to deploy, run or develop server-based Java applications (co-named Java 2 Enterprise Edition), you need to install one of kits from here:
http://java.sun.com/javaee/downloads/index.jsp
These kits includes additional standard libraries (.jar files), needed for running Java server applications.

This post has been edited by java-area: Mar 8 2008, 04:22 AM
Go to the top of the page
 
+Quote Post
jc804
post Mar 7 2008, 10:12 PM
Post #6


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 14
Joined: 7-March 08
Member No.: 28,957


I've wanted to set up my computer for command line java compiling using javac before but when I got to the PATH variable I noticed that my win32 folder was there. Isn't that necessary for c++ compiling using the g++ command or am I wrong? Will replacing my PATH with C:\Program Files\Java\jre1.6.0_03\bin alter my ability to compile c++ files in the command prompt? If yes is there any way to be able to do both? It's not really an big issue I'm just curious. Currently I use NetBeans to compile my java code.

This post has been edited by jc804: Mar 7 2008, 10:13 PM
Go to the top of the page
 
+Quote Post
java-area
post Mar 8 2008, 04:20 AM
Post #7


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 47
Joined: 4-February 08
Member No.: 28,119


QUOTE(jc804 @ Mar 7 2008, 05:12 PM) [snapback]120094[/snapback]
I've wanted to set up my computer for command line java compiling using javac before but when I got to the PATH variable I noticed that my win32 folder was there... Will replacing my PATH with C:\Program Files\Java\jre1.6.0_03\bin alter my ability to compile c++ files in the command prompt? If yes is there any way to be able to do both?


you can put in PATH as many pathes as you need:
using semicolon separator ( ; ) in Windows
or a single colon separator ( : ) in Unix

example: C:\Program Files\Java\jre1.6.0_03\bin;C:\Any_Other_Path

Go to the top of the page
 
+Quote Post
iGuest
post Apr 30 2008, 02:59 AM
Post #8


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


help please :s
Setting Up Java Correctly

First I got the batch file error, I went through all of this correctly, and now I get this error "exception in thread "main" java.Lang.Noclassdeffounderror: gui press any key to continue, someone help me please :(

-reply by kaleb
Go to the top of the page
 
+Quote Post
iGuest
post May 9 2008, 06:45 AM
Post #9


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


I want to create the gprs/wap settings for my series 40 phone nokia
Setting Up Java Correctly

I want to create the gprs/wap settings which are usually provided by the service provider. My problem is that my service provider has not created the settings for my phone and they are not going to create it also. I want java applications like Opera mini to access the net using proxy server of the provider. But my handset Nokia 5300 allows only nokia browser to access the proxy server (the browser is stupid and mo way matches the performance of Opera Mini). Ericsson phones have the in built facility, so they are able to open sites using Operamini and proxy server. I am very sure that if such a setting is created I will be able to access the net via proxy. In fact,actually Airtel has created the setting with a different access point name of " airtelfun.Com " and it works also but my reqirement is with access point " airtelwap.Com " So ericsson users are enjoying and smartphone users also.
In my phone the applications use access points to connect to net. They cant connect using access point and a proxy address and proxy port like 8080. They only allow direct connection. (series 60 and other smart phones can access.)
I want some http setting that uses airtelwap.Com as the access point and 100.1.200.99 as the proxy address and 8080 as the proxy port and this setting should be used by java application Operamini to access net like sony ericcson phones.
So someone pls modify the airtel Live setting (access point name "airtelfun.Com" proxy address "100.1.200.99" and proxy port "8080") to "airtelwap.Com" proxy address "100.1.200.99" and proxy port "8080"

And how do I install the setings in my phone. Over the air or with some application.
Help me asap or I will have to change my phone.

-question by hemant dongre
Go to the top of the page
 
+Quote Post
iGuest
post Jul 20 2009, 01:44 AM
Post #10


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


HOME_PATH
Setting Up Java Correctly

When I was installing CATIA v6 it asked me for Java Home Path for which I've browsed C:Proagram Files\java\jre6\bin\bin, an error message came stating...

"incorrect JAVA_HOME path. Program java was not found in path C:Proagram Files\java\jre6\bin\bin"

can anyone help me where I went wrong please...

-reply by skoo
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   10 Jimmy89 2,478 10th November 2009 - 03:31 PM
Last post by: iG-Will
No New Posts   7 amit nigam 1,232 4th November 2009 - 12:33 AM
Last post by: HannahI
No New Posts   5 sparkx 702 4th November 2009 - 12:29 AM
Last post by: HannahI
No New Posts   6 FearfullyMade 2,890 28th October 2009 - 08:14 PM
Last post by: HannahI
No New Posts   7 WeaponX 5,749 19th October 2009 - 03:52 AM
Last post by: iG-sandra
No New Posts   17 vicky99 6,425 17th October 2009 - 11:51 AM
Last post by: surfermac
No New Posts   5 vicky99 2,139 6th October 2009 - 07:02 AM
Last post by: iG-Daniel
No New Posts   12 jedipi 1,760 5th October 2009 - 05:36 PM
Last post by: iG-
No New Posts   5 sitekeen 3,658 30th September 2009 - 07:03 AM
Last post by: iG-Josh
No New Posts   0 starscream 130 24th September 2009 - 12:14 PM
Last post by: starscream
No New Posts   7 suicide 5,150 5th September 2009 - 02:11 PM
Last post by: iG-sam
No New Posts   1 surfermac 278 23rd August 2009 - 09:48 PM
Last post by: yordan
No New Posts   7 Kart 2,651 21st August 2009 - 07:11 PM
Last post by: iG-anon_anon
No New Posts   17 mahender 12,957 6th July 2009 - 11:43 AM
Last post by: ashish17
No new   26 Hercco 3,652 22nd May 2009 - 06:05 AM
Last post by: satwant007


Web Hosting Powered by ComputingHost.com.