Results 1 to 2 of 2
Thread: Problems with compile applet
- 08-06-2007, 05:58 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 39
- Rep Power
- 0
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:
Here's the command I'm typing in DOS:Java Code:error: Can't read: HelloWorldApp.java 1 error
Java Code:C:\>jdk1.1.8\bin\javac HelloWorldApp.java I put the HelloWorldApp.java file in the bin directory too. Can anyone help me
Thanks.Java Code:public class HelloWorldApp { public static void main(String[] args) { // Display "Hello World!" System.out.println("Hello World!"); } }
- 08-07-2007, 07:43 AM #2
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
Try this:
To compile:Java Code:class HelloWorldApp { public static void main(String[] args) { // Display "Hello World!" System.out.println("Hello World!"); } }
To run it:Java Code:javac HelloWorldApp.java
And yes you should put that file in the bin directory unless you have set up classpaths to point to somewhere else.Java Code:java HelloWorldApp
Similar Threads
-
applet.policy and i/0 problems
By willemjav in forum NetBeansReplies: 0Last Post: 03-08-2008, 10:32 PM -
How to compile an applet to an exe
By elizabeth in forum Java AppletsReplies: 4Last Post: 02-18-2008, 03:57 AM -
problems when I try to run an applet
By boy22 in forum Java AppletsReplies: 2Last Post: 08-11-2007, 03:47 PM -
problems with applet tags
By oregon in forum Java AppletsReplies: 2Last Post: 08-06-2007, 03:19 AM -
problems with applet
By paty in forum Java AppletsReplies: 1Last Post: 08-05-2007, 04:16 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks