Java Applet

468 byte By christianunixa at 2007-10-1 23:19:21
I created an applet named Converter.class. When the compiler successfully finishe compiling, it also created Converter$1.class and Converter$2.class. Why are those two classes created? what are they? and within my computer Converter.class successfully runs, but when I upload Converter.class to ...

how can my j2me application talk to ERP system

92 byte By acceltreea at 2007-10-1 23:22:01
how can my j2me application talk to ERP system?thanks in advance..harsh

Adding an exclude tag to the Standard doclet

1057 byte By phuenefea at 2007-10-1 23:26:35
Hello, I have looked over the javadoc documentation quite a bit and realized that there is no easy way to exclude classes and methods with a custom tag such as @exclude, but still use the standard doclet without modifying the doclets source. I have started to do this by making a copy of the ...

serial port communication

184 byte By drake01a at 2007-10-1 23:29:00
I have a device connected to my serial port, and I want to send a command to just as you would in say hyperterminal. Is there a function that does this, or how do I go about it?

Problems using java comm API on Solaris

917 byte By vedppatela at 2007-10-1 23:30:37
Hi, I need help!!! i am working on Solaris machine. My java program was getting compiled but while running is throws following exception.Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: /usr/lib/libSolarisSerialParallel.so: ld.so.1: java: fatal: /usr/lib/libSolarisSerialParallel.so: ...

problem in creating socket

1109 byte By nay0648a at 2007-10-1 23:30:42
Hello everyone:please see this code segment://Test.javaimport java.net.*;public class Test {public static void main(String args[]) throws Exception{Socket s;s=new Socket("www.sina.com.cn",80);System.out.println(s);s=new Socket("202.108.33.21",80);System.out.println(s);}}it works well in red hat ...

The Java applet doesnt show up - instead white window !?

455 byte By ilanOrlova at 2007-10-1 23:32:06
Hello there..I have a mysteries problem.I have a client server program using RMI in Java 1.4 but sometimes before anything shows up, At the point that my java applet show up from the HTML page on 10% of the times I see a white window on the HTML page at the size of the applet and it dead.After ...

Identifire expected error and) expected error

7814 byte By rdsii640a at 2007-10-1 23:32:21
I am extreamly new to java and have what most people(but me) would consider a rather simple assignment.I have attempted to write a simple mortgage calculator with a GUI. When I attempted to compile I got the following errorsjava:99 <identifire>expectedpublic void ...

IllegalMonitorStateException? wait() and notify()

415 byte By sunnzneta at 2007-10-1 23:33:02
Can someone tell me what's the deal with wait() and notify() methods? Like how to use them properly? Right now I have two threads, one being the main program and the other should run occationally when I need it... I try to get the second to wait() and second.notify() when I want to to run but ...

runtime error within my java applet here!!

683 byte By deangeloeducateda at 2007-10-1 23:33:44
my applet successfully compiles,but when I run it, it crashes with the following error message:java.lang.NullPointerExceptionat Dairy.init(Dairy.java:211)at sun.applet.AppletPanel.run(Unknown Source)at java.lang.Thread.run(Unknown Source)and below is the part of my sourcecodefor(int ...

Problems with applet - no text in the window

878 byte By habibia at 2007-10-1 23:33:54
Hi!I'm trying to learn some java, and I've just done my first applet. The code looks like this:__import java.awt.*;import java.applet.*;public class MittNamnApplet extends Applet {Font f;public void init() {f = new Font("SansSerif", Font.BOLD, 24);setBackground(Color.pink);}public void pain ...

No source files for package - error

722 byte By queries123a at 2007-10-1 23:38:05
Currently i am running javadoc from the commandline as follows:-javadoc -doclet javadoc.StandardDoc -classpath C:\j2sdk1.4.2_03\lib\tools.jar -sourcepath D:\Data\CVS\Tools\SoapDocGenerator\src sampleI get these warnings :-Loading source files for package sample...javadoc: warning - No source ...

using SerialPort.write()

334 byte By drake01a at 2007-10-1 23:38:59
Hey Guys,I am trying to send a command to a serial port using SerialPort.write("command"). I keep getting an error saying:cannot find symbolsymbol: method write(java.lang.String).I probably have the syntax for the method wrong or maybe there is something else, can anybody help? ...

need help with error please!!

4851 byte By drake01a at 2007-10-1 23:39:58
I am not very good with programming, and need help. I am compiling this code for my project, and I want to find out if the line System.out.println("look here 3); will executeBut the compiler gives me the following error:Main.java:115: <identifier> expected System.out.println("look here ...

configuring build.xml for struts in Eclipse

3463 byte By vuckoa at 2007-10-1 23:42:50
Hi guys! I need some help! I am trying to run "struts-examples" from eclipse3.0.This is my build.xml file :<project name="Struts Example" default="main" basedir="."><!-- This is a basic build script, only the minimums here --><!-- Tell ant to use my environment variables ...

Graphical error - clueless

805 byte By Drowa at 2007-10-1 23:44:31
Just started a programming class at univesity which require alot of studies at home.I am however getting a graphical error which is really making it hard for me to study. Something as simple as a JOptionPane.showMessageDialog shows completely blank. I can click the area where the ok button is ...

Getting strange error message when using Scanner Utility

218 byte By 7345953592232754460a at 2007-10-1 23:45:09
i'm getting the error message:"cannot resolve symbol class Scanner"I'm doing some computer science homework and need to compile this and work on it now can anyone help me out? Love always, Nicole

Javascript call of Java method works on some systems, not others

563 byte By mKenyona at 2007-10-1 23:49:07
I have an applet that I embed in my page with the <APPLET> tag. Then I have javascript that calls a method in the Java .class file. This works on most systems that have java.However, on one system (and possibly others) I get an error saying 'no such method exists'. I tried clearing out ...

javaDoc Conflicts: missing @param tag

341 byte By acetoleveragea at 2007-10-1 23:49:21
I get these sort of Conflicts for all the parameters of all the methods in a particular code file where querying thing is coded in JBuilder6, I tried to resolve it using the Jbuilders Wizards JavaDoc help but unsuccessful. Can anyone pls let me know what more could have gone wrong other than ...

ConcurrentModificationException won't release thread lock?!?!

1516 byte By leigh@@@a at 2007-10-1 23:50:01
Hi all,My program is experiencing intermittent lock when it experienced ConcurrentModificationException and it won't release the thread lockl?!This thread supposedly will only run for 1 min but its been 12 mins already and its not yet releasing the lock. It seems like because ...

java.lang.NoClassDefFoundError

607 byte By Jake_D_Birda at 2007-10-1 23:50:39
I'm having trouble implementing this following code:InitialContext ic = new InitialContext(MyProperties);Object tmpObj = ic.lookup(MyObjectName);MyHome tHome = (MyHome) PortableRemoteObject.narrow(tmpObj, MyHome.class);This runs fine until it reaches the last line at which point I get a ...

error no package system?

340 byte By gtrdude18a at 2007-10-1 23:50:43
any ideas of whats wrong or what im doing wrong? thanksC:\Documents and Settings\Dylan Moore\My Documents>javac app.javaapp.java:4: package system does not existsystem.out.println("I Rule!");^app.java:5: package system does not existsystem.out.println("The World");^2 ...

combinations(long,long) in TestCombinations cannot be applied to (long)

508 byte By MStoloa at 2007-10-1 23:51:45
Hi,I'm trying to write a recursive method that calculates the number of combinations. Here's is my code...I was just wondering why I keep getting the error "combinations(long,long) in TestCombinations cannot be applied to (long)". Any ideas on how to fix it would be greatly appreciated. ...

error with NetBeans JAR file

736 byte By JonathanMunza at 2007-10-1 23:51:49
I wrote a program using the NetBeans IDE, the program runs fine with no errors with tested in the actual environment. However when I build the project and create a JAR file I am unable to run it. Double-clicking the file brings up this error:Java Virtual Machine LauncherCould not find the main ...

javax.mail.MessagingException: 553 5.1.8

362 byte By acetoleveragea at 2007-10-1 23:56:49
Error sending email message : Sending failed;nested exception is: javax.mail.MessagingException: 553 5.1.8 <username@host.com>... Domain of sender address <username@host.com>... does not exist.I need help on this please. There's no problem with the properties file , what else can ...

Java Altering System Clock

360 byte By paragonEricBa at 2007-10-1 23:56:50
I am developing on an application that has to put alot of stress on the processor. However, even though I don't do anything with the System time other than querying for it, the time gets modified on the users system. Is there a known bug in Java that will cause the time to change under high ...

Messing with JavaCompiler

622 byte By gregman_pla at 2007-10-1 23:56:51
I have a following problem :I need to put into webservice a method that at runtime compiles custom source code and executes it.Compilation is done by calling JavaCompiler class that I've rewrote to make compilation from/to memory and put error messages to custom stream.During compilation some ...

NullPointerException in PrintWriter.flush()

2833 byte By vltavaa at 2007-10-1 23:57:24
Hi,I have this code: protected void sendDoc( Element el ){ try{ Source sou = new DOMSource( el ); Writer str = new StringWriter(); Result output = new StreamResult( str ); PrintWriter printOut = new PrintWriter( out, true ); TransformerFactory tf = TransformerFactory.newInstance(); Transformer ...

postgresql-jdbc on Suse Linux

1083 byte By gingerbraida at 2007-10-1 23:57:30
Hi,I am writing a Java Swing application on Suse Linux and want to add Embedded SQL to it. The application should interact with a PostgreSQL database running on my local machine. The compiler complains that it cannot find the org.postgresql package included in the code. I'm guessing the ...

debugging <identifier> expected

2556 byte By mnkybya at 2007-10-1 23:58:43
i'm doing basic java programming for my computer science clas and I keep getting the <identifier> expected error. I use BlueJ as my IDE. Here is the code; my error comes on line myInscribedRadius = (double) 1 / 2 * sL * (1 / Math.double tan(Math.PI / nS)); :public class Polygon{int ...

SQL ORDER BY

343 byte By acetoleveragea at 2007-10-2 0:02:08
In SQL ORDER BY clause if we want to order the database based on 2 columns then how does the ORDER BY clause know which column is the main priority. For eg:SELECT * FROM table WHERE some_conditions ORDER BY column_1, column_2Then will ORDER BY clause order the records giving column_1 as the ...

Runtime problem , please help,

859 byte By kane0086a at 2007-10-2 0:03:48
public class execInput {public static void main(String Argv[]) {try {String output;String[] cmd ={"c:\\xpdf\\pdftotext.exe", "c:\\pdfFile\\dispatching.pdf"};Process pr = Runtime.getRuntime().exec(cmd);}catch (IOException e) {System.exit(0);}}Above program is run in Ms-DOS : ...

Runtime problem , please help,

859 byte By kane0086a at 2007-10-2 0:03:49
public class execInput {public static void main(String Argv[]) {try {String output;String[] cmd ={"c:\\xpdf\\pdftotext.exe", "c:\\pdfFile\\dispatching.pdf"};Process pr = Runtime.getRuntime().exec(cmd);}catch (IOException e) {System.exit(0);}}Above program is run in Ms-DOS : ...

package does not exist

3858 byte By u53r_n4m3a at 2007-10-2 0:04:25
i just started java so sorry if these is such a newb question. i have searched google, i found answers but they didn't work. i made a class that will enable me to input from the keyboard.input.class:import java.io.*;public class Input{private static BufferedReader inp = new BufferedReader(new ...

please somebody give the difference b/w equals() and ==

274 byte By kurska at 2007-10-2 0:04:52
hi, Try executing the equals() and == on Strings, they both work the same can any body tell the difference b/w the two. they work the same for strings initialized to some value, but if u pass the string through an object u get different values!!

Could you explain me this error please?(Linux)

146 byte By Gantua at 2007-10-2 0:05:02
Note: smtpClient.java uses or overrides a deprecated API.Note: Recompile with -deprecation for details. OS :Linux Fedora Core

erroe with java

322 byte By evilananasa at 2007-10-2 0:05:34
i ty to star a javabased programme and i get this error from java console:Live2D.start()Live2D.run()Exception in thread "Thread-46" java.lang.NoClassDefFoundError: Playerat Live2D.run(Live2D.java:74)at java.lang.Thread.run(Unknown Source)i would like to now how to fix ...

NoClassDefFoundError, I'm new

277 byte By Clendaroa at 2007-10-2 0:06:11
I compiled my first .java file and I made a .class file.....but when i try to run it from the prompt i get this NoClassDefFoundError.I saw in the FAQ that I should set CLASSPATH=, then try again, however I get the same problem.Anyone know what I should do?

Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no Linux

625 byte By i_hate_commapia at 2007-10-2 0:06:12
Trying to start demo from Sun commapi:$ java SimpleReadError loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.pathException in thread "main" java.lang.ExceptionInInitializerErrorat SimpleRead.main(SimpleRead.java:67)Caused by: ...

NoClassDefFoundError

224 byte By Clendaroa at 2007-10-2 0:06:31
I compiled my first .java file and obtained a .class file. When I try to run the .class file I get this NoClassDefFoundError.I saw on the FAQ to set CLASSPATH=, but I got the same result.Can anyone help?

cannot find symbol "console" error

930 byte By cava@aua at 2007-10-2 0:07:22
hi there ~ Here is environment:winXP Projdk1.5.0_04here is part of my code:System.out.print("Enter Bit length\t:");int bitlen = Console.readInt();.........System.out.print("Enter integer to be encrypted :");BigInteger big = new BigInteger(Console.readString());here is the error msg:C:\Program ...

Compiler can't find other classes

756 byte By lone_wolfIIa at 2007-10-2 0:07:27
I've got this bad problem that's been bugging me all weekend, and I can't work out how to fix it. A few months ago I was able to write classes that use other classes I've defined no problem. I just started using my compiler again, and now when I want to use different classes I've written, ...

Compiling generic hashmap

815 byte By luislesendea at 2007-10-2 0:09:21
Look at Thisimport java.util.*;public class c1 {public static void main(String[] args) {HashMap<String, Object > map1 = new HashMap<String, Object>();HashMap<String, Object > map2 = new HashMap<String, Object>();map1.put("a1 ", "a1");map1.put("a2 ", "a2");map1.put("a3 ", ...

Strange compile error concerning different regex packages

1021 byte By BuddyCasinoa at 2007-10-2 0:11:58
Hi there,I have a really strange problem when trying to build my sources with an ANT script. In Eclipse, this problem does not occur!Here is the output:[javac] ...

java.lang.NoSuchMethodError: main

292 byte By acetoleveragea at 2007-10-2 0:13:12
I get this message java.lang.NoSuchMethodError: mainwhen i try to use the debug feature in JBuilder 6. Is debugging not possible if there is no main method in my application? please suggest me how to use the debugging feature in JBuilder 6 without main method in my code. Thanks

putting links on a web page

123 byte By acetoleveragea at 2007-10-2 0:13:35
Hihow do i put links of other web pages on a particular web page using template: putname conceptthanks

error message

551 byte By drake01a at 2007-10-2 0:14:13
HiI'm trying to compile a piece of code a friend gave me but the compiler gives me an error :package javax.comm does not exist; import javax.com.However, I have already downloaded java communication API and have the following files in the following directories of the jdk1.5.comm.jar is in ...

java.lang.OutOfMemoryError: Java heap space

1104 byte By rish_ahaa at 2007-10-2 0:14:55
Whenever I run my program I get this error messagejava.lang.OutOfMemoryError: Java heap spaceI tried using the -Xms and -Xmx options but nothing is happening.... When I typejava -Xms512m -Xmx512mnothing is happening and I get the following messageC:\Program Files\Java\jdk1.5.0_03\bin>java ...

Error...What does this mean

1266 byte By Lovebev1a at 2007-10-2 0:15:18
I am using a software package for placing a menu on a website and when I try to load my page, I always get this error message, Line 29, Char 1, Object Expected; Error. The website is www.stewartscleaningservice.com. I have been trying to solve this error message and I am unable. The menu is ...

Same Newbie Problem again... help?

602 byte By Metallic_Kittya at 2007-10-2 0:18:15
Hey,I have a problem i can't resolve.When i try to compile anything (even the helloWorld applic), the DOS told me that the javac command is not an internal or external command.The same quetion everybody asks! I've tried reading solutions in various forums but I haven't been able to solve the ...