Converting the Program into a .exe

388 byte By pie4all88a at 2007-10-2 14:40:42
Hello everyone! I'm not sure if this is in the right forum, but it seemed like the best fit to me.I've created a small program that's ready for distribution. This is a stupid question, but how do I compile everything into an executable? It'd be much easier for everyone else if they could ...

Java keeps closing internet

176 byte By Slagara at 2007-10-2 14:42:16
Whenever I try to play a game or visit a site that uses Java, it closes my internet. Every time. I have no idea what is wrong with it. Anyone know what to do about this?

My recursive file search is stuck in loop...

5817 byte By HippieJoea at 2007-10-2 14:42:21
I am running on OS X using Java version 1.4.2_09. I am trying to make a recursive search through the file system to count up all the objects that qualify as files...and eventually perform some function on them that is not yet written. My goal is to create the same output that the unix command: ...

What factors should be taken into account for Custom Exceptions

176 byte By vjoyweba at 2007-10-2 14:44:11
hi,I just want to know that What factors should be taken into account for making Custom Exceptions.any examples will appreciated.regards,vjoy

The Local Variable May Not Have Been Initialized

1418 byte By netsonicca at 2007-10-2 14:44:39
Hi all;There is a problem that i didnt understand..?Java assigns the initial value of defined variables.isnt it?I have a merge sort algorithm below but for C array the error is:The local variable C may not have been initializedin one of if and else statement C[ ] have to get a value...So i ...

Spell Check Doclet

240 byte By hlandera at 2007-10-2 14:45:08
I have created a Doclet which people may find useful. It allows you to spell check your JavaDoc. It is very simple and easy to use. It is available for free, open-source download at http://www.softframeworks.com/download/download.php

Cannot Read...

418 byte By suzea at 2007-10-2 14:48:05
Hey,Im trying to compile my first .java file but when i type the command javac helloworld.java it returns the message 'cannot read: HelloWorld.java' im really new to this, and must be doing something wrong, i have tried all possible avenues including the javac sourcepath ...

illegal start of expression

182 byte By veroknotta at 2007-10-2 14:56:42
HIIm guetting an illegal start of expression with the following double x= (double).parseDouble(s);s is a string , any one has a clue ?Thanks

Is there a way to Cross Compile from i386 to x86_64.

315 byte By Sampa at 2007-10-2 14:59:40
Hi,I develop applications in Linux with a i386 arquitecture, but the actual production machine is going to change and became a Dual Core AMD x86_64. Is there a way to cross compile in my computer wihtout having to go to the production machine and compile there all the ...

retrieve digit from token

285 byte By veroknotta at 2007-10-2 15:00:14
StringTokenizer st = new StringTokenizer (input); String s=st.nextToken();while(st.hasMoreTokens()){what would be the expression that allows me to test if the string represents a digit and retrieve itI tried isDigit(), but does not workThanks

Applet Notinited Sometimes, Sometimes Not

668 byte By Kestrel87a at 2007-10-2 15:01:27
Fairly experienced java programmer here, but I'm pretty new to applets.I have created a class that extends JApplet and overrides init(). It works 100% properly when I run it on my computer, or another computer in the house, both running 1.5 update 6 (what it's compiled under). And when I say ...

Exception In thread

3583 byte By metana at 2007-10-2 15:04:06
hello to all.Exception In thread "SyntheticImageGenerator" java.lang.OutOfMemoryError: Java heap spaceI ve two classes. and I am getting the above error.Neccessary code is below:public class MainEngineeringToolFrame extends JFrame implements ActionListener.{//Some Code...public ...

Error encountered stress testing JNI code on MulitProcessor Machine

12115 byte By GaneshMa at 2007-10-2 15:05:55
Hi All,I am getting the following error while testing my JNI code on MultiProcessor Machine using Java HotSpot(TM) Client VM (1.5.0_04-b05) for windows-x86.I went through the C++ Code but did not find anything wrong with it after comparing it with the JNI specifications available online.Can ...

Nullpointer Exception

696 byte By Tesa at 2007-10-2 15:07:36
Hi,think i have missed something at the basic java course :-(A nullpointer exception is a fault that is caused by something pointing to a referance that is null. Is this correct?I磎 making a program that is to manage my cd磗. I use a gui as a user inteface. The problem is that i get a nullpointer ...

Java programs do not work correctly in my computer.

460 byte By Rancheroa at 2007-10-2 15:09:33
This is very simple. Every java program I have, such as the Java Control Panel or the LimeWire (downloads program) can't work correctly, meaning the program's window appears but not its content; showing a blank window instead of showing me the program. I have reinstalled the complete java ...

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d779c9d, pid=3964, tid=37

8650 byte By dora_kla at 2007-10-2 15:10:43
hello,i had this problem....when running my java application....can somebody help me?....what it's mean?## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d779c9d, pid=3964, tid=3760## Java VM: Java HotSpot(TM) Client VM ...

Problem running applet with Internet Explorer (Microsoft VM)

689 byte By mm0000a at 2007-10-2 15:14:05
I am writing an applet using JDK 1.5, and the applet works fine with Netscape, and Internet Explorer with the Sun Java plugin. However, I need to make the applet work using Microosoft VM. The error I get is:Error loading class: ...

stream.java uses or overrides a deprecated API.

245 byte By Itachi182a at 2007-10-2 15:14:34
Note: stream.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Press any key to continue . . . Could anyone help me with what this means, or how to fix it, if it's broken. :)

Cannot find symbol error

1801 byte By wookie19a at 2007-10-2 15:15:20
First of all I want to say I am a complete nub to this so sorry if it's some dumb mistake, right now I am trying to make a small applet to check for keyboard input, I have been following the tutorial but it seems to think that i already know how to begin and end the applet because it just gave ...

Syntax error in collection

237 byte By youngswaa at 2007-10-2 15:15:54
the problem arise when i try to compile the following codeArrayList<Integer>=new ArrayList<Integer>();the errors are in following tokens '<' &'>'.the compiler wants argument after '>' .

javac not a valid command

954 byte By agdistisa at 2007-10-2 15:16:13
I reformatted my computer several months ago, and just recently reinstalled the JDK for my programming classes.I followed the directions I found on installation, and added C:\Program Files\Java\jdk1.5.0_06\bin to my PATH variable.I use the TextPad program to write and compile my Java programs, ...

Nullpointer exception... any help would be appreciated

7350 byte By mann_jess@yahoo.coma at 2007-10-2 15:18:08
In advance, I apologize for any ignorance which I may obviously have... I'm in the process of learning Java, and am used to C/C++... In any case, I'm running into a nullpointer exception while 'compiling', which I'm having trouble figuring out... I'll list everything below, but this ...

NameAlreadyBoundException...

633 byte By Comagea at 2007-10-2 15:18:46
Hello folks,I am using the J2ee deploytool to deploy one of my programs when I got this error:Exception in creating EJB container javax.naming.NameAlreadyBoundException [Root exception is org.omg.CosNaming.NamingContextPackage.AlreadyBound: ...

java servlet compilation

111 byte By Kramesha at 2007-10-2 15:19:31
Sir,How do I compile java servlet and in which directory?where do I put java servlet source file?

java servlet compilation

60 byte By Kramesha at 2007-10-2 15:19:33
How do I compile java servlet and in which directory?

struts No action instance for path could be created

1231 byte By sevenofninea at 2007-10-2 15:22:04
Hi,I get the following error message: No action instance for path /bookList could be createdmy struts-config file looks like:<form-beans><form-bean name="bookListForm" type="strutsform.BookListForm" ...

Compiler error for single line if

2881 byte By threadSavera at 2007-10-2 15:24:40
Hi all,I found an interesting quirk, recently. I've condensed the problem into the following simple test class.public class Main {public static void main(String[] args) {final boolean myBoolean = args.length > 1;if (myBoolean) {final double result = doIt();}}public static double doIt() ...

Java Applet Problem

27939 byte By Mellingy2ma at 2007-10-2 15:24:59
I have recently been creating an applet with 2 main parts. Firstly, to aid as a text editor and to, secondly, query an SQL database (Eventually).I am currently having a problem running the Applet in Appletviewer and internet explorer. I have, in part, used Jbuilder to create the UI and it is ...

Java Applet Problem **Ignore Previous Post**

45680 byte By Mellingy2ma at 2007-10-2 15:25:01
have recently been creating an applet with 2 main parts. Firstly, to aid as a text editor and to, secondly, query an SQL database (Eventually). I am currently having a problem running the Applet in Appletviewer and internet explorer. I have, in part, used Jbuilder to create the UI and it is ...

Exception in thread "main" java.lang.NumberFormatException:For input String

4849 byte By shuca at 2007-10-2 15:28:32
this is a code about arrylist. but when I debug it.it metion:Exception in thread "main" java.lang.NumberFormatException:For input String at java.lang.NumberFormatException.forInputString(numberFomatExceptionio java:48)at java.lang.Integer.parseInt(integer.java:468)at ...

Javac not recognized issue

704 byte By Erisa at 2007-10-2 15:30:50
Hi,I have the same old same old javac not recognised as internal or external command etc issue.I have followed all the instructions on solving this issue, i have reinstalled the jdk twice, the second time directly to C:/ to ensure that the space in "Program Files" wasnt causing the issue. My ...

java.sql.SQLException: (Connection is busy with results for another hstmt )

321 byte By 241a at 2007-10-2 15:35:12
HI,I have one error in jsp-jdbc connection.I have 2 queries ,1 is select query and another one is update query.The error isjava.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmtAnyone can yoe help me .Urgently i need.Thank ...

boolean size and compiler

109 byte By Motshya at 2007-10-2 15:38:12
hi alli need to know sun says that boolean has undefined size so where the value will be stored

boolean size

341 byte By Motshya at 2007-10-2 15:43:14
Let me say it inother wordsCan anyone tell me the exact boolean size for JVM implementation?it is said that when you create a boolean array it is a byte array other said that it is treated like int if it is a single boolean but it reserves only one bitso please if any one has any idea about ...

java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory

3199 byte By tanskia at 2007-10-2 15:44:38
Hi,I'm really having a hard time on the problem I encountered on WSAD. Can anybody help me or give me an idea on how to solve this problem since I've been working this problem for 4 days now.Here is my simple code and the error I encountered: WebSphere Studio Application Developer Integration ...

Arrays- Showing the populated array.

1232 byte By HaloPolicea at 2007-10-2 15:48:12
Hey, this is my first semester of Java, so it is all news to me.My question Im sure isnt difficult to answer. "Write a program that prompts the user for a value and creates an integer array of that size. Prompt for initial values to populate the array."This is what I have so far:import ...

Recursion

72 byte By Shesa158643a at 2007-10-2 15:48:36
Please tell me whether I can call the main method in a recursion.

rmic error

187 byte By youngswaa at 2007-10-2 15:50:26
i face this problem when i try to accass a resultset from a remote machine.Unmarshalling Exceptionpls send me a piece of code how can i get a resultset from remote machine..

try to create documentation with javadoc but it could not be launched

247 byte By blabla111a at 2007-10-2 15:51:17
help me please,when i try to generate javadoc i get a bug:could not launch javadoc commanderror=193i don't know why. maybe because i have no packagelist in the doc folderbut how do i create a packagelist?

logging more fine for a paricular logger ?

657 byte By john_ma at 2007-10-2 15:54:37
Hello,(i also posted this to another forum, but maybe this one is more appropriate)Does anyone know about changing logging level for one particular logger? Can we get a more fine level for one particular logger? It only seems to allow us have less fine.Right now, we only have default setting ...

why i have this Exception?

2798 byte By student14a at 2007-10-2 15:55:58
package Elevator;import java.util.*; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; public class myHashtable{ private static Hashtable hash; public myHashtable(int Capacity){ hash=new Hashtable(Capacity); if ...

Simplest servlet possible...what am I doing wrong

1197 byte By Biggie_maca at 2007-10-2 15:56:21
Take this simple servlet:import java.io.*;import javax.servlet.*;import javax.servlet.http.*;public class SimpleCounter extends HttpServlet {int count = 0;public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException ...

How do you output integers only?

323 byte By HaloPolicea at 2007-10-2 15:56:22
Hey,im writting a program where a user must enter the size of an array, and then enter the integers for that array. Everything works fine but now I want to show an error message if the user enters a character or a symbol. How do I go about this ?Any feedback would be ...

What's the mean of the error message?

935 byte By Sonecaa at 2007-10-2 15:57:00
I have done a simple code to send an emailfro the command line, i've done the same using servlet and it was successful, so now when i run a class to send an email i get this message, what's wrong ? i have set the debug.The lines of the EnviaEmail.java:36 is 35session.setDebug(true);36Message ...

I want to compile and run a file which uses three jar files as resources

842 byte By franklinia at 2007-10-2 15:57:54
hello everyoneI seek help in a problem am having.I have a package called Classes which has several classes. (ClassA.java, ClassB.java) and I have a lib folder containing three jar files which i need to compile my classes (A.jar, B.jar, C.jar).Am trying to create two .bat (compile.bat, ...

javax.servlet.ServletException

2750 byte By jwstudenta at 2007-10-2 15:58:48
[nobr]Can someone help me out. I am new to JSPsI trying to learn how to use javaBeans and JSPs and get the following errors (they alternate when I refresh the page)javax.servlet.ServletException: sample/UserData (wrong name: UserData)root cause java.lang.NoClassDefFoundError: sample/UserData ...

Question mark "?" appears in output

949 byte By firstnerda at 2007-10-2 15:59:10
Output:No. of quarters: 4No. of dimes: ? 10No. of nicks: ? 20No. of pennies: ? 100Total amount is $4.0.Codepublic class CountChange {public static void main(String [] args) {int qrtrs, dimes, nicks, penns; double total;System.out.print("\nNo. of quarters: ");qrtrs = TextIO.getInt(); ...

Help with a java.io.IOException

1847 byte By sadman64a at 2007-10-2 15:59:24
/*input : MemoryAccess - to load process into the diskoutput : true if file opened, flase if failspurpose : to open a file and read in the processes code sourse: http://javaalmanac.com/egs/java.io/ReadLinesFromFile.html*/public boolean openFile(MemoryAccess ma){Process p;String file, ...

hiii

1107 byte By sabretootha at 2007-10-2 16:00:33
hii guys. my name is ram. iam new to this forum and an obsolute beginer with java. iam reading java HTP(deitel). my doubt is import javax.swing.JApplet;import java.awt.Graphics; public class welcomeapplet extends JApplet{public void paint(Graphics g) {g.drawString("welcome to java ...

getting an error code off my computer....

135 byte By shellya at 2007-10-2 16:04:30
I keep getting " please download and install a newer version of java"- and I want that error code to go away....can anyone help?