Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2007, 06:58 PM
Member
 
Join Date: Jul 2007
Posts: 39
coco is on a distinguished road
Problems with compile applet
I'm wanting to have a go at java. I've been trying to get the SDK from the java sun site, but every time I finally download it, it gives me an error, about it being corrupt. So, can I use any other java programs that does the same as this SDK program? As you can see, I don't know what it does, I just read that I need it to compile applets.

Hi, I got the jdk1.1.8 but every time I'm trying to compile it, it's saying:
Code:
error: Can't read: HelloWorldApp.java 1 error
Here's the command I'm typing in DOS:
Code:
C:\>jdk1.1.8\bin\javac HelloWorldApp.java I put the HelloWorldApp.java file in the bin directory too. Can anyone help me
Code:
public class HelloWorldApp { public static void main(String[] args) { // Display "Hello World!" System.out.println("Hello World!"); } }
Thanks.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 08:43 AM
Member
 
Join Date: Jul 2007
Posts: 40
toby is on a distinguished road
Try this:
Code:
class HelloWorldApp { public static void main(String[] args) { // Display "Hello World!" System.out.println("Hello World!"); } }
To compile:
Code:
javac HelloWorldApp.java
To run it:

Code:
java HelloWorldApp
And yes you should put that file in the bin directory unless you have set up classpaths to point to somewhere else.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
applet.policy and i/0 problems willemjav NetBeans 0 03-08-2008 11:32 PM
How to compile an applet to an exe elizabeth Java Applets 4 02-18-2008 04:57 AM
problems when I try to run an applet boy22 Java Applets 2 08-11-2007 04:47 PM
problems with applet tags oregon Java Applets 2 08-06-2007 04:19 AM
problems with applet paty Java Applets 1 08-05-2007 05:16 AM


All times are GMT +3. The time now is 09:47 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org