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?thanks in advance..harsh
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 ...
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?
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 : ...
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 : ...
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 ...
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!!
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
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 ...
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?
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: ...
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?
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 ...
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, ...
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 ", ...
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] ...
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
Hihow do i put links of other web pages on a particular web page using template: putname conceptthanks
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 ...
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 ...
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 ...
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 ...