Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
* * * * - 1 votes

Java:Tutorial - "Hello World"

hello world

  • Please log in to reply
20 replies to this topic

#13 -xAsN

-xAsN

    CC Lurker

  • Just Joined
  • Pip
  • 7 posts

Posted 10 December 2008 - 12:41 AM

i have a question. is there any way to compile java files without setting enviroment variables? cos i dont have the administrator rights and the computer is school property.
  • 0

#14 Maze

Maze

    CC Regular

  • Just Joined
  • PipPipPip
  • 32 posts

Posted 11 December 2008 - 12:49 PM

i have a question. is there any way to compile java files without setting enviroment variables? cos i dont have the administrator rights and the computer is school property.


Sorry but i couldn't understand the problem?
  • 0

#15 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 11 December 2008 - 12:54 PM

How are you trying to compile the Java programs? Command line or some other application?
  • 0
Your thoughts are the architects of your destiny.

#16 -xAsN

-xAsN

    CC Lurker

  • Just Joined
  • Pip
  • 7 posts

Posted 11 December 2008 - 06:10 PM

How are you trying to compile the Java programs? Command line or some other application?


cmd. but it seems like only java work. javac doesnt. therefore i cant change my file into .class.
  • 0

#17 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 11 December 2008 - 07:42 PM

Sounds like the computer is not set up for Java development. If they have installed the JRE, then the java.exe will be present to allow you to run Java programs, but javac.exe may not be present.

Have you tried searching the PC for javac.exe?
  • 0
Your thoughts are the architects of your destiny.

#18 -xAsN

-xAsN

    CC Lurker

  • Just Joined
  • Pip
  • 7 posts

Posted 12 December 2008 - 01:15 AM

well... it is school computer. therefore i dont have rights to access many parts of it. i was wondering if there is any way to compile a .txt file into .class via an external program(without the need to run installation as the school computer also has installation disabled).
  • 0

#19 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 12 December 2008 - 12:15 PM

You might be able to install the JDK to a flash drive...I've heard of it done, but never tried it.


1. Install the JDK to a folder on the flash drive.

2. Every time you log into a computer and want to use the JDK open up a command promt, navagate to the root of the flash drive, and then set the path.

Something like: set Path=\jdk1.6.0_10\bin;%Path% (replace jdk1.6.0_10 with the java folder name on the flash drive)

However, I'm not sure this will work if you have restricted permissions. You may not be able to set the path.
  • 0
Your thoughts are the architects of your destiny.

#20 Turk4n

Turk4n

    ???

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1919 posts
  • Location:Sweden
  • Programming Language:C, Java, PHP, Python, Bash
  • Learning:C++, C#, JavaScript, Visual Basic .NET, Others

Posted 23 December 2008 - 03:31 PM

Never looked into this thread but dam*, John nice tutorial, clear as crystal to understand !

Edited by Turk4n, 24 December 2008 - 09:08 AM.
Can't use good words :> also my bad with the name...

  • 0

#21 Termana

Termana

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 971 posts

Posted 23 December 2008 - 06:52 PM

jordan? john done this tutorial!
Posted via CodeCall Mobile
  • 0





Also tagged with one or more of these keywords: hello world

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download