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 ...
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?
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: ...
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
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 ...
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
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 ...
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
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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. :)
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 ...
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 '>' .
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, ...
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 ...
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: ...
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?
60 byte By
Kramesha at 2007-10-2 15:19:33
How do I compile java servlet and in which directory?
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" ...
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() ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
Please tell me whether I can call the main method in a recursion.
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..
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
[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 ...
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(); ...
/*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, ...
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 ...
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?