Java newbie
hi!
i installed recently the j2ee server application on windows xp localhost...
so i need some advice of how to start programming with java and how to implement my first applications on this server..
if anyone can point me to exsist simply applications and how to implement them to this j2ee server to get a better image of all this...
i guess java is the best technology ive sen till now as an expert in php language and apache servers..
an good direction about how to start all this new world is appreciated..
thanx in advance....
If you are new to Java, I would suggest you to get acquainted with the core concepts first before delving into developing enterprise applications.
http://java.sun.com/docs/books/tutorial/
For J2EE, you could refer to this tutorial. It's nice if you are using the same App server.
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
Similar Messages
-
Java newbie help (type casting, 64bit unsigned Long)
Hi I am java newbie and need help on my project. I have a few questions. Can you put strings in a hashtable and test for their being their with the appropriate hashtable method? I want to test for equal strings, not the same object. Second question can you use all 64 bits of an unsigned long? java doesn't seem to allow this. Any packages that do?
Thanks,
DaveTry casting it to Long instead of long. Long (capital L) is an Object, while long (lower case l) is not. You may also check to make sure the value isn't null. I would have thought that autoboxing would have worked here unless the value was null. But I am no expert on autoboxing.
Edit >> Checking for null ain't a bad idea but has nothing to do with the problem - this is a compile time problem. Sorry.
Also>> This code should work:
long cTime=(Long)session.getAttribute("creationtime");Edited by: stevejluke on Jul 1, 2008 11:00 AM -
RFCLIB access from Perl / Java - newbie question
Hi folks,
I am newbie with SAP. I am triying to access the SAP from my web application, wrote in PErl or JAva.
I am trying to access the librfc, bit I would like to know:
1) What software I need to install in my client side (the web server that host my web application)??
2) Which software contains the RFC SDK? or the RFC LIB?
3) Should I runt the script to access the rfclib in the SAP server side???
Please help me with this cruel doubt !!!Hi,
download the SAP JAVA Connector (SAP JCO) from
service.sap.com
There are enough examples for java.
Best Regards
Frank -
Call All Adventurous Java Newbies
Yes you heard me right!. Im an experienced programmer who adopted java about a year ago. What I want to do is create a small program that will be conductive to helping others learn programming ( specifically java ). The only problem is I dont have as much time as I would like to devote to this project. Hence im looking for some other vollunteers to help. I open this up to newbies as an oppertunity for them to learn and have an active contribution back to the java community.
If your interested email me at [email protected]
Learn by Doing!none of u knew whether mark aok was a child, or whether he was trying to have a go at something too hard for him or just made a simple mistake without checking.
Admittedly these forums often include things that would be better solved by the individuals with the problems, but if u are not willing to solve other peoples problems then what's this forum all about
Wgower etc sound like they are god's gift to Java or to programming, but i'm sure they've asked for help because of a stupid mistake before.
Stop making programming into a jargon full secret clique of snobby 'intellectuals' --some of us like JG are trying to help bring programming to all who want to learn -
Help, Java newbie a little over my head with LDAP
I'm actually a network admin but I've been dabling in Java for a little while now.
I am trying to write an app that will allow me to insert and remove attributes to entries in Active Directory.
I have found some sample code which I have altered to make a "proof of concept" before I start on the actuall app I want.
The problem I am having is writing into the AD. I can query entries with no error but when I try a modification I get an "DSA is unwilling to perform" LDAPException. I am pretty sure it's not a permissions issue but from reading stuff on here I am begnining to think that it may have something to do with SSL connections. There is commented out code below where I experimented with this but I was unable to connect the the AD when this was in. "unable to connect to the directory server error".
If anyone can offer me any advice I would be most grateful.
package LDAPTest;
import netscape.ldap.*;
import java.util.*;
import com.novell.service.ndssdk.jndi.ldap.ssl.*;
// Simple program to experiment with searching LDAP
public class FilterSearch
public static void main(String[] args)
if(args.length != 6)
System.out.println("Usage: java FilterSearch " +
"<host> <port> "+
"<authdn> <password> "+
"<basedn> <filter> ");
System.exit(1);
String host = args[0];
int port = Integer.parseInt(args[1]);
String authid = args[2];
String authpw = args[3];
String base = args[4];
String filter = args[5];
String[] ATTRS = {"memberOf"};
int status = -1;
//SSL experiment that would not connect to the AD server.
//LDAPConnection ld = new LDAPConnection(new LDAPSSLSocketFactory("com.novell.service.ndssdk.jndi.ldap.ssl.LdapSecureSocketFactory"));
LDAPConnection ld = new LDAPConnection();
System.out.println("done connection");
try
//Connect to server and authenticate
ld.connect(host, port,authid,authpw);
System.out.println("Search filter = " +filter);
LDAPSearchResults res = ld.search(base, ld.SCOPE_SUB, filter, null, false);
//Loop on results until complete
while(res.hasMoreElements())
try
//Next Directory entry
LDAPEntry entry = res.next();
prettyPrint(entry, ATTRS, ld);
status=0;
catch(LDAPReferralException e)
System.out.println(e);
continue;
catch(LDAPException e)
System.out.println(e.toString() );
continue;
LDAPAttribute atrib = new LDAPAttribute("memberOf", "CN=Tight VNC,OU=Staging Transmitter Channels,DC=marimba,DC=local");
LDAPModification mod = new LDAPModification(LDAPModification.ADD, atrib);
System.out.println(ld.isAuthenticated());
try{
// This is the code the throws the Exception DSA is unwilling to perform.
ld.modify("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local", mod);}
catch(LDAPException e){
System.out.println(e);}
catch(LDAPException e)
System.out.println(e.toString() );
//Done, so disconnect
if((ld!=null) && (ld.isConnected()))
try
ld.disconnect();
catch(LDAPException e)
System.out.println(e.toString());
System.exit(status);
public static void prettyPrint(LDAPEntry entry, String[] attrs, LDAPConnection ld)
System.out.println("DN: " + entry.getDN());
//Use array to pick attributes. We could have
//enumerated them all user LDAPEntry.getAttributes
//but this gives us control of the display order
for(int i = 0; i < attrs.length; i++)
LDAPAttribute attr = entry.getAttribute( attrs);
if (attr == null )
System.out.println(attrs[i] + " not present");
continue;
Enumeration enumVals = attr.getStringValues();
//Enumerate on values for this attribute
boolean hasVals = false;
while ((enumVals!=null) && enumVals.hasMoreElements())
String val = (String)enumVals.nextElement();
System.out.println(attrs[i] + ": " + val);
hasVals=true;
if(!hasVals)
System.out.println(attrs[i] + " has no values");
System.out.println("----------------------");OK, I have learned a little about JNDI today and have attempted to implement this using JNDI instead.
I am now getting the OperationNotSupportedException when attempting to add an attribute to an item in Active Directory.
here's the code, can anybody who has managed to add data into AD help with this?
cheers.
package JNDI;
import javax.naming.*;
import javax.naming.directory.*;
import java.util.*;
class Getattr
public static void main(String[] args)
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://hostname:389/");
env.put(Context.SECURITY_PRINCIPAL, args[0]);
env.put(Context.SECURITY_CREDENTIALS, args[1]);
try {
// Create the initial directory context
DirContext ctx = new InitialDirContext(env);
// Ask for all attributes of the object
Attributes attrs = ctx.getAttributes("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local");
for (NamingEnumeration ae = attrs.getAll(); ae.hasMore();)
Attribute attr = (Attribute)ae.next();
System.out.println("attribute: " + attr.getID());
/* Print each value */
for (NamingEnumeration e = attr.getAll(); e.hasMore();System.out.println("value: " + e.next()));
// Specify the changes to make
ModificationItem mod[] = new ModificationItem[1];
mod[0] = new ModificationItem(DirContext.ADD_ATTRIBUTE,
new BasicAttribute("memberOf", "CN=Tight VNC,OU=Staging Transmitter Channels,DC=marimba,DC=local"));
ctx.modifyAttributes("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local", mod);
// Find the surname attribute ("memberOf") and print it
//System.out.println("memberOf: " + attrs.get("memberOf").get());
} catch (NamingException e) {
System.err.println("Problem getting attribute:" + e); -
Java newbie (what's could be wrong with this program?)
First things first, I just started programming with JAVA recently so please forgive me if it seems stupid. Since I am so relatively new to the language, in order to get a feel for it I started running some simple scripts. I can compile and execute most of them without any problem. However when I tried to compile this one I get a couple of errors I am not familiar with. So my question is what could be wrong and what needs to be changed in order to get it to work? or if the syntax is correct could there be some other problem?
On a side note, I am coming more from a C and C++ background so if anyone can recommend a way to start learning the JAVA language from a prespective in C that would be highly appreciated.
System Environment: I am using j2sdk1.4.2 on a Windows 2000 machine running SP3.
If anything else needs further clarification please let me know.
|------------------------- The Code -----------------------------------|
package RockPaperScissors;
import java.util.HashMap;
public class RockPaperScissors {
String[] weapons = {"Rock", "Paper", "Scissors"};
EasyIn easy = new EasyIn();
HashMap winners = new HashMap();
String playerWeapon;
String cpuWeapon;
int cpuScore = 0;
int playerScore = 0;
public static void main(String[] args) {
RockPaperScissors rps = new RockPaperScissors();
boolean quit = false;
while (quit == false) {
rps.playerWeapon = rps.getPlayerWeapon();
rps.cpuWeapon = rps.getCpuWeapon();
System.out.println("\nYou chose: " + rps.playerWeapon);
System.out.println("The computer chose: " + rps.cpuWeapon + "\n");
rps.getWinner(rps.cpuWeapon, rps.playerWeapon);
if (rps.playAgain() == false) {
quit = true;
System.out.println("Bye!");
public RockPaperScissors() {
String rock = "Rock";
String paper = "Paper";
String scissors = "Scissors";
winners.put(rock, scissors);
winners.put(scissors, paper);
winners.put(paper, rock);
System.out.println("\n\t\tWelcome to Rock-Paper-Scissors!\n");
public String getPlayerWeapon() {
int choice = 6;
String weapon = null;
System.out.println("\nPlease Choose your Weapon: \n");
System.out.println("1. Rock \n2. Paper \n3. Scissors \n\n0. Quit");
try {
choice = easy.readInt();
} catch (Exception e) {
errorMsg();
return getPlayerWeapon();
if (choice == 0) {
System.out.println("Quitting...");
System.exit(0);
} else {
try {
weapon = weapons[(choice - 1)];
} catch (IndexOutOfBoundsException e) {
errorMsg();
return getPlayerWeapon();
return weapon;
public void errorMsg() {
System.out.println("\nInvalid Entry.");
System.out.println("Please Select Again...\n\n");
public String getCpuWeapon() {
int rounded = -1;
while (rounded < 0 || rounded > 2) {
double randomNum = Math.random();
rounded = Math.round(3 * (float)(randomNum));
return weapons[rounded];
public void getWinner(String cpuWeapon, String playerWeapon) {
if (cpuWeapon == playerWeapon) {
System.out.println("Tie!\n");
} else if (winners.get(cpuWeapon) == playerWeapon) {
System.out.println("Computer Wins!\n");
cpuScore++;
} else if (winners.get(playerWeapon) == cpuWeapon) {
System.out.println("You Win!\n");
playerScore++;
public boolean playAgain() {
printScore();
System.out.print("\nPlay Again (y/n)? ");
char answer = easy.readChar();
while (true) {
if (Character.toUpperCase(answer) == 'Y') {
return true;
} else if (Character.toUpperCase(answer) == 'N') {
return false;
} else {
errorMsg();
return playAgain();
public void printScore() {
System.out.println("Current Score:");
System.out.println("Player: " + playerScore);
System.out.println("Computer: " + cpuScore);
|------------------------- Compiler Output ----------------------------|
C:\ide-xxxname\sampledir\RockPaperScissors>javac RockPaperScissors.java
RockPaperScissors.java:8: cannot resolve symbol
symbol : class EasyIn
location: class RockPaperScissors
EasyIn easy = new EasyIn();
^
RockPaperScissors.java:8: cannot resolve symbol
symbol : class EasyIn
location: class RockPaperScissors
EasyIn easy = new EasyIn();
^
2 errorslimeybrit9,
This importing certainly seems to be the problem, I'm still not used to how compilation works within the JAVA language, I'll play around with it a bit and see if I can get it to work correctly.
bschauwe,
The C++ approach has certainly clarified some of the points. I guess I will be sticking to that.
bsampieri,
You were correct on the class looking rather generic, but as I mentioned before I was just sort of tinkering to see if I could get it to work.
Thanks to all for the help, very much appreciated. -
Java Newbie Question - the import statement
Hi Geeks,
I have a problem for importing a java .class in my project. This latter is named "Tedetis_New". Inside it, I created a "src" folder containing all the source code of the application. I import a jar file inside the parent directory of "src" (i.e. at the root of the project). Inside this jar archive, two classes (.class files) are not placed inside a package (default package according to eclipse), let's name one toto.class. So when I want to import toto.class from a file inside the src directory I simply do "import toto.class" but this statement doesn't work ! I don't manage to import my toto.class so ... what do you propose for this ?
Thanks.Don't use the "default" class for anything serious;
you can't import such a class.Er, package maybe?Yes, I was editing my reply while you replied to my reply so I couldn't
edit my little blooper in my reply anymore; thank you very much Sir ;-)
kind regards,
JosI entered that response as quickly as I could, for just that reason. I
thought you might notice and try to correct it, and I wanted to preserve
your fuckupus maximus for all eternity.
Everyone gather round and taunt Jos! Wave your private parts at his
auntie! Fart in his general direction!
Now, aren't you glad you didn't say "Jehovah"?I already knew that you were the one who invented amiability ;-)
kind regards,
Jehov^H^H^H^Hos -
Saving Applet display as an image... Java newb
Hello,
I'm using wirefusion3D to display and configure 3D objects on a website I've been developing. The only thing it lacks is the ability to save out an image of the current display, which I need to do in order to place those images on a pdf invoice.
It does, however, have the ability to include custom java code within the applet, so I would like to create a function that will take a snapshot of the current rendered applet display and save that snapshot as a bitmap image on the server. I'm new to Java (I'm a PHP/Javascript guy), and have had no luck finding anything about how this would be done. I'm not really sure what to search for, as I don't really know what java functions/classes deal with this sort of thing.
I was hoping someone could point me in the right direction.
Thanks in advance1. If all the drawing is taking place in one J/Component, you can construct a BufferedImage, obtain a reference to its associated Graphics and call paint/Component passing the Graphics reference as parameter. Then save the image to a file.
2. java.awt.Robot#createScreenCapture returns a BufferedImage which is a snapshot of the screen.
db -
Visio like object drawing in Java - newbie question
Hi all,
Although a reasonably experienced java programmer I am new to the world of 2D graphics.
I am contemplating writing a tool which includes a diagramming capability for displaying computer systems and interactions between them.
I guess this would not be a million miles from what a UML diagramming tool does, but it would definitely have some differences.
So, for example, in this tool a user would be able to:
Define a computer system and allocate an icon for it.
Drag that system icon onto a diagram.
Draw lines between systems and to represent interactions and define what those interactions were.
Does anyone know if there are any Java API's or tools out there which could get me started?
Thanks in advance, Robin.wpafbuser1 wrote:
Go fly a kite, Troll. OP said he was new and wanted to know which Java API's to use for 2D graphics. Moreover, there are no Java-related API's with diagramming capability. He can Google for that anyway.He's not new to java as he has stated that he is a "reasonably experienced java programmer". He also knows that he will probably need Java2D else he wouldn't be in this forum. If he is reasonably experienced, there's no doubt that he knows about Swing and how it can be used to create GUIs.
To the OP, you could try to roll your own Visio like flowcharting program through Java2D and Swing, but you will probably get up and running faster if you use tools already created for this purpose. One such is JGraph ^1^. There are probably others as well.
^1^ http://www.jgraph.com/ -
Threads in Java: Newbie question
Hi
I had a doubt regarding Threads. I have implemented a Security Manager which does not allow a thread to write into a file. Now, the problem is when the thread tries to write into a file, the Security Manager calls my function in which I want to immediately terminate the thread. How do i do this? How do I terminate a thread without using the deprecated Stop() function ?
Thanks in advance
RGThe trick is to make the thread die a natural death... One method is have a boolean somewhere which is initially set to true (maybe call it keepRunning?), and the thread that should die have a while loop which periodically checks to see that this boolean is still true.
The function which should terminate the thread can now set that variable to false and force the thread to die at the next iteration of its while loop.
There are more examples, more methods, and probably a better explanation at:
http://java.sun.com/docs/books/tutorial/essential/threads/lifecycle.html
Good luck! -
Another java newbie question: "Link errors"
In the environments I've attempted compiling in, it seems that there is a just-in-time default, which means that any missing classes are not found until run time.
Is there any way to to run javac so that what we used to call "link errors" will be displayed at compile time?Java has no .h files, so it shouldn't compile at all if a class is missing, unless:
Someone compiles class Library, they have class Extension available
They give you Library
You compile, javac sees theat "Library" exists and checks no further
At run time, you get errors about Library needs missing class "Extension"
What class is missing anyhow? -
Java newbie help: Need to change a graphic on screen
Hello everyone. I'm a long time C/C++ programmer, and I've been thrust into the Java world when I inherited an incomplete project. If something I mention later on sounds stupid, it's probably because it came that way, or I'm trying to force it into what I know from old experience.
FWIW, the project is being developed with Netbeans.
What I'm after is how to change a graphic object onscreen from within the code, vs. with a device such as a mouse. I'm trying to emulate an LED indicator.
What I've done so far is to try using the enable state, and defining GIFs to display. That didn't work.
I've switched gears a bit, and tried something similar with the selected property, but that will only work if I hit the item with my mouse and click. Also, the item is defined as a jToggleButton.
In general terms, what do I need to do to set this up for the displayed item to change without device input? I've been reading stuff about Buttons, ToggleButtons, Graphics, Images, and Icons, and I'm waaaaaay lost right now.
To add to the frustration is that I've done something similar with Visual C++, and that worked as intended. Harumph.
Help?!?FWIW, the project is being developed with Netbeans.
In case you don't know, you can use any editor to develop java code.
What I'm after is how to change a graphic object onscreen from within the code, vs. with a device such as a mouse. I'm trying to emulate an LED indicator.
What I've done so far is to try using the enable state, and defining GIFs to display. That didn't work.
What happend?
I've switched gears a bit, and tried something similar with the selected property, but that will only work if I hit the item with my mouse and click. Also, the item is defined as a jToggleButton.
Is this not what you wanted? -
Java newb having variable trouble
I'm taking an intro to object oriented programming class. Our teacher barly speaks English and spends the entire class time lecturing about what object oriented means rather than going over syntax and programming tips. I am so sick of hearing about car factories =(
We are supposed to
"Write an applet that paints the pie chart associated with five categories whose percentages are given by variables percentage1 to percentage5 and corresponding labels are given by variables label1 to label5."
After spending 2 days on this, this is as far as I've gotten. I'm getting 19 errors and I just don't know what to do about any of them.
Any help would be most appreciated.
import javax.swing.JApplet;
import java.awt.*;
import java.util.Scanner;
import java.lang.Math;
public class Money extends JApplet
public void paint (Graphics page)
int percentage1 = 10;
int percentage2 = 15;
int percentage3 = 20;
int percentage4 = 25;
int percentage5 = 30;
float workingstorage = 0;
int anglestartingpoint = 0;
String labe11 = "Rent and Utilities";
String label2 = "Transportation";
String labe13 = "Food";
String labe14 = "Educational";
String labe15 = "Miscellaneous";
workingstorage = percentage1 * 3.6;
percentage1 = Math.round(workingstorage);
page.setColor (Color.blue);
page.fillArc(10,10,300,300,anglestartingpoint,percentage1);
page.drawString(label1,320,10);
anglestartingpoint = percentage1;
workingstorage = percentage2 * 3.6;
percentage2 = Math.round(workingstorage);
page.setColor (Color.green);
page.fillArc(10,10,300,300,angelstartingpoint,percentage2);
page.drawString(label2,320,30);
angelstartingpoint = angelstartingpoint + percentage2;
workingstorage = percentage3 * 3.6;
percentage1 = Math.round(workingstorage);
page.setColor (Colpage.fillArc (10,10,300,300,angelstartingpoint,percentage3);
page.drawString(label3,320,50);
angelstartingpoint = angelstartingpoint + percentage3;
workingstorage = percentage4 * 3.6;
percentage1 = Math.round(workingstorage);
page.setColor (Color.yellow);
page.fillArc (10,10,300,300,angelstartingpoint,percentage4);
page.drawString(label4,320,70);
angelstartingpoint = angelstartingpoint + percentage4;
workingstorage = percentage5 * 3.6;
percentage1 = Math.round(workingstorage);
page.setColor (Color.cyan);
page.fillArc (10,10,300,300,angelstartingpoint,percentage5);
page.drawString(label5,320,90);
----jGRASP exec: javac -g censored
Money.java:33: possible loss of precision
found : long
required: int
percentage1 = Math.round(workingstorage);
^
Money.java:36: cannot find symbol
symbol : variable label1
location: class Money
page.drawString(label1,320,10);
^
Money.java:40: possible loss of precision
found : long
required: int
percentage2 = Math.round(workingstorage);
^
Money.java:42: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
page.fillArc (10,10,300,300,angelstartingpoint,percentage2);
^
Money.java:44: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
angelstartingpoint = angelstartingpoint + percentage2;
^
Money.java:44: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
angelstartingpoint = angelstartingpoint + percentage2;
^
Money.java:47: possible loss of precision
found : long
required: int
percentage1 = Math.round(workingstorage);
^
Money.java:49: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
page.fillArc (10,10,300,300,angelstartingpoint,percentage3);
^
Money.java:50: cannot find symbol
symbol : variable label3
location: class Money
page.drawString(label3,320,50);
^
Money.java:51: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
angelstartingpoint = angelstartingpoint + percentage3;
^
Money.java:51: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
angelstartingpoint = angelstartingpoint + percentage3;
^
Money.java:54: possible loss of precision
found : long
required: int
percentage1 = Math.round(workingstorage);
^
Money.java:56: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
page.fillArc (10,10,300,300,angelstartingpoint,percentage4);
^
Money.java:57: cannot find symbol
symbol : variable label4
location: class Money
page.drawString(label4,320,70);
^
Money.java:58: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
angelstartingpoint = angelstartingpoint + percentage4;
^
Money.java:58: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
angelstartingpoint = angelstartingpoint + percentage4;
^
Money.java:61: possible loss of precision
found : long
required: int
percentage1 = Math.round(workingstorage);
^
Money.java:63: cannot find symbol
symbol : variable angelstartingpoint
location: class Money
page.fillArc (10,10,300,300,angelstartingpoint,percentage5);
^
Money.java:64: cannot find symbol
symbol : variable label5
location: class Money
page.drawString(label5,320,90);
^
19 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.String labe11 = "Rent and Utilities"; // 'label' should end with an 'ell' not a 'one' char
String label2 = "Transportation";
String labe13 = "Food"; // 'label' should end with an 'ell' not a 'one' char
String labe14 = "Educational";
String labe15 = "Miscellaneous"; // 'label' should end with an 'ell' not a 'one' char
workingstorage = percentage1 * 3.6;
percentage1 = Math.round(workingstorage); // make that: '(int)Math.round(workingstorage)'
page.setColor (Color.blue);
page.fillArc(10,10,300,300,anglestartingpoint,percentage1);
page.drawString(label1,320,10);
anglestartingpoint = percentage1;
workingstorage = percentage2 * 3.6;
percentage2 = Math.round(workingstorage); // make that: '(int)Math.round(workingstorage)'
page.setColor (Color.green);
page.fillArc(10,10,300,300,angelstartingpoint,percentage2); // check the spelling of 'anglestartingpoint'etc. etc.
kind regards,
Jos -
Hi, I have never programmed before but I am interested in JAVA.
I downloaded the java SE jdk and followed the insyallation notes.
I am trying out the Hello world application and I get this message when I try to run the javac command in my shell window.
C:\java>javac HelloWorldApp.java
+'javac' is not recognized as an internal or external command,+
operable program or batch file.
I am using a windows xp machine. I need help.This is kinda crazy..I haven't written one line of code and already dealing with errors.
I started another command shell and got a different error. I will post the error and result of the set PATH command below.
C:\Documents and Settings\Administrator>cd\
C:\>set PATH
PATH=C:\Program Files\Java\jdk1.6.0_04\bin;C:\Program Files\Java\jdk1.6.0_04\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
C:\>cd java
C:\java>javac HelloWorldApp.java
HelloWorldApp.java:6: cannot find symbol
symbol : class string
location: class HelloWorldApp
+public static void main(string[] args) {+
+^+
HelloWorldApp.java:7: package system does not exist
system.out.println("Hello World!"); // Display the string.
+^+
+2 errors+
what is responsible for this? -
Java newbie - loadField onto an HTML page
Hi, I have very limited Java knowledge and this is probably a dumb question but I am hoping for some help. I am using "loadField" to pre-load a value on an HTML form but I also want the user to change that value if they think it is incorrect (in this particular case it is a telephone number). I do not have the field set as "readonly" but when the form displays the user is not able to change the value. What am I missing to get this to work?
I guess I may have answered my own question - I see that you can highlight the field and then hit "delete" to remove the default value and type in a new value. I guess I still have a question: Is this the only way it can be done or can you leave the value in the field and then type over it?
Maybe you are looking for
-
It is used to be that I could right click on the Firefox icon on the toolbar at the bottom of the screen and I would then be given the option to open all windows. Now I only see the option to close all windows. The ability to open all windows is very
-
Our iMac seems to be running on two systems??
Sorry if i am not explaining this very well, I am not sure of the correct terminology. When we upgraded to Yosemite we have had a couple of problems. We lost all our photos from iphoot, tried many suggestions and spoke to Apple but they are unable
-
I just bought a Yoga 2 Pro a few days ago and Am pretty happy with it, however I am having an incredibily annoying time with it when it comes to video. Any windows 8 app that plays protected video does not work. It sends and error message similar to
-
Report to find relation transaction - Solman 7.1
Hello Sap Solution Manager Experts, Is there any transaction or report to view the associated relation/message? In other words, given the message number 8*344, i should be in position to see that two messages namely 8*474 and 8*473 are linked to the
-
I'am creating a movie in my Mcbookair I realised that when add a background music, or even effects from the software, the imove does not play it. it plays only the video sound. can someone help me?