Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

SunOne

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I just downloaded SunOne from the Sun website. I also downloaded Java SDK.
I want to write the following simple swing application-
<applet code=Applet1 width=50 height=50></applet>
import javax.swing.*;
import java.awt.*;
public class Applet1 extends Applet
{
public void init()
{
getContentPane().add new jLabel("applet"));
}
}
1. Can someone please give me step by step instructions on how to load the
necessary class files for compiling the above code?
2.Right now when I compile it, I get the error-
'cannot recognise jLabel'.
3. I have the following directories under c:/j2sdk/
bin, demo, java, jre, lib, src, com, include, javax, launcher, org, sunw
4. I have been mounting c:/j2sdk through the file system for the above
mentioned project.
But looks like something is wrong. Can someone please..please give me instructions on what to do. I have been trying this since 2 days now.
Amrita
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a special forum just for SunOne questions, so I have moved your message there for you.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic