2901 byte By
addona at 2007-10-2 1:39:37
ok im a java newbie and need a bit of helpwhat im trying to do is take input from the user and send that to a class named cube where it takes the inputed value, and calculates the area and permpublic class CubeUser{public static void main (String[] args) throws IOException {BufferedReader input ...
514 byte By
TKH2120a at 2007-10-2 1:39:49
I have jdk 1.5.0_05 installed and i created a program called "Test1.java" .I saved the program in C:\Program Files\Java\jdk1.5.0_05\binand the class is created as well in the bin as "Test1.class" .From the command prompt, I have the path C:\Program Files\Java\jdk1.5.0_05\bin>I am able to ...
815 byte By
@modia at 2007-10-2 1:40:19
I tried compiling a program that instantiates an object of another class from a separate .java file. However, both .java files are in the same directory. I've never encountered this problem before, and I know some path variable must be wrong somewhere but I don't where. I also tried added a ...
Hi,I am trying to understand how jpcap works and I am using Eclipse IDE to run the Examples. I have included all the jars. when I run the program I am getting the following error. PacketCapture: loading native library jpcap.. okException in thread "main" java.lang.UnsatisfiedLinkError: ...
Does anyone have ideas on how to compile large systems? Currently I am using gnu make/makefiles executed via a Unix script. Is there an easier better way than to clean, execute, and run a depend option on 100 makefiles?
1032 byte By
Adi.Ma at 2007-10-2 1:43:57
HelloI have a problemHere is my codeimport java.net.*;import javax.swing.*;import java.awt.image.*;public class Cursbnr extends JApplet{public JLabel EuroValue =new JLabel();public JLabel DolarValue =new JLabel();public JLabel GoldValue =new JLabel();JPanel EuroBar = new JPanel();JPanel ...
Hi all,I am required to do an indepth study on security-related exception handling in Java, their Pluses and minuses... Can ppl suggest me places where I can get a kick start? Any resource that u know can help me out? I appreciate ur help in this regard...FYI, I am a grad student and I am doing ...
I have write the class Aleatorio.java for implements an new method similar to Random and I have declared as follow:package java.util;public class Aleatorio extends Random {public int nextInt( int inferior , int superior ){int i;i=nextInt();i=inferior+(Math.abs(i) % (superior-inferior+1));return ...
I have developed a Socket Programing using Netbeans IDE on windows environment. Now i want to port the Class files on Tandem which is unix like OS.But i am getting ClassFormatException and unable to bind the libraries like log4j. Can anybody help me in Configuration of classpath for lib on ...
452 byte By
hrptdcaa at 2007-10-2 1:48:00
hello,i hav a problem while i run a javac command at the command prompt.my operating system is windows 2000 server family. jdk1.4.0 has being installed .i hav tried using set class path command ieset CLASSPATH=c:/program files/jdk1.4.0/bin after this when i give javac at the command prompt it ...
492 byte By
LaBombaa at 2007-10-2 1:50:50
Hello,I have some problem when I'm trying to start my java-program. Everything is going just fine until I'm trying to start the program. The error-message I get is:Exception in thread "main" java.lang.NoClassDefFoundErrorI've got my java-files on:c:\Programfiler\Java\jdk1.5.0_04My CLASSPATH: ...
7051 byte By
drake01a at 2007-10-2 1:53:08
Hi I honestly need help.I have this piece of code that i am using to open COM1, write, and read from it.Well the problem is I doubt if it actually writes to the port because when i run the program, I don't pick up any activity at the port. It says the port is open but when I write to it, I get ...
hello, my problem is that when i want to open a picture in IE 6 with java 1.5 the window doesn't pop up and it wont opet the picture. this happened even before installing sun java, so i was thinking that installing it will solve the problem but no! and some images in IE doesn't show but there ...
Hello.I have a friend who is running a serialized server(EJB)-client(APPLET) program using weblogic. The server is upgraded to new version and thus the server's java runtime version is upgraded to 1.4, though the clients are still using 1.3.The program ran very fine before the server upgraded ...
1057 byte By
MrLanea at 2007-10-2 1:54:08
HelloI have looked around, but cant get quite the answer I am after here. Please bare in mind that I am normally used to C/C++ so some of my terminology may be off...Basically I have this set of source files and .jar files for a project. I have succuessfully compiled the source files into ...
I have developed a new method called Aleatorio like than the book Programming java shows but when I try run the application same as learn in that book appears this message :Exception in thread "main" java.lang.SecurityException: Prohibited package name : java.utilI don't understand what happen ...
5151 byte By
pocniba at 2007-10-2 1:57:05
When running a swing application I get an undefined variable: this error when attempting to call the method addActionListener(), I can not see why I am getting this error as this is not a variable but rather a reserved wordimport javax.swing.*;import java.awt.*; import java.awt.event.*;public ...
I have a problem. Ever since I uninstalled norton my Java has been screwed up. About two months ago I update to the newest Java. But now my Java doesn't even work! I get that it can't find "jp150040[1].cab" I tried installing it offline and it worked but that Java still doesn't work. Here ...
I received the error below when trying to start an application that uses a wrapper over sun.java2d.SunGraphicsEnvironment (that works fine over Linux and Windows).I have not been able to figure out why this is failing.An unexpected exception has been detected in native code outside the ...
1333 byte By
eTomma at 2007-10-2 2:01:49
Hello all, my first post is for talking about this infamuos error of java.When i try to view a page that use Java for one of it's applet, the applet doesn't work and Java console report among other errors:Caused by: java.io.IOException: open HTTP connection failed.at ...
I have a package called jpb stored in a folder called jpb. The package has two files SimpleIO.java and Convert.java. My program has 1 of the line like this...import jpb.*;...I put the path and classpath in Jgraps pointing to the folder jpb but when I compile the program, it keeps saying the ...
Hi I have created a simple client server program . In the Client i give the server ip/name and port number in command line... but when i try to run the client on a port on which the server is not running .. the following message is generated....C:\Program Files\Java\jdk1.5.0_02\bin>java ...
Hi is there any way to use conditional compilation in such a way that in the true condition i have compilable code and in the false condition i have a code which is not compilable at this moment so that the compiler just ignores it completely (Like in C/C++) and not give any compile time ...
Hi,I'm working on a small database project and I'd like to use it as an application outside of eclipse. Since it may be too difficult for me to create an executable jar file (it didn't work), I wanted to compile and run it manually from the command prompt. Compiling works withjavac ...
hi ppl,i have installed jre-1_5_0_04-windows-i586-p-iftw . but i am not able to compile any java program. when i try to compile javaw it is generating an error " could not find the main class : program will exit ".pls help me to figure out what went wrong.pls i need a reply ...
537 byte By
marco.sa at 2007-10-2 2:12:51
I have installed Tertio ProvidentThis was developed with java and at the beginning I hve to connect to a server. I was not able to connect. On connection this error occurs:"Could not connect to the Provident Service Activation Server, class configured for Cipher: ...
I have the same problem as many other people have experienced involving javac not being recognized in command prompt. I have tried everything that i am aware of to solve it. advice please - i am running XP, JDK1.5
I NEED HELP TO GO BACK TO MY POGO GAMES I DID EVERTHING IT TOLD ME TO DO AND I STILL CANT GET ON IT SAYS JAVA NOT FOUND OR NOT WORKING
Whenever I construct a new object with a static field or use a set method on any of the instances of that object, the static field will change to the last modification made. In the case of my program, whenever the static String color field is changed to the last modification made. This only ...
This is the code when i compile it i got Error message.Pl Solve this problme & tell me why i am getting this problemwhich is :-import javax.servlet.*;Dose not existimport javax.servlet.http.*;Dose not existimport java.io.*;import java.util.*;import javax.servlet.*;import ...
2942 byte By
Lu-Siana at 2007-10-2 2:19:53
Hi, i want to test a program that requests to a servlet continuously, then save the response to SQL (SQL Server 2000) database. But there is a problem.After a while the program starts, it throws an exception and becomes throwing the same exception at each http request. I dont understand ...
Hi hero's,My application uses plain java, rmi, and jni. In order to compile this in a decent way, i want to create a compile script. Now I have created an ant build file, but with ant i cannot compile c++ code. So therefore i created a dos-script that calls for ANT in order to compile the java ...
Hi, I have written a program to periodly check a web site to read some information periodly (use Timer). The code is something like this:try {URL url = new URL(" http://www.cnn.com");BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));String str;while ((str = ...
Hi, I have written a program to periodly check a web site to read some information periodly (use Timer). The code is posted below.The problem is: when the "connection timed out" exception happens, the program seems stopped to execute at next desired time (after 10min) but did not quit either... ...
I'm trying to run javac 1.5.0 in Cygwin but it seems to ignore the classpath I pass in,so I get "package does not exist" error. Any ideas?Here's my command:/cygdrive/c/Program\ Files/java/jdk1.5.0_04/bin/javac \-verbose \-d classes \-classpath .://filer/home/doog/src/adsenseapi/google3/java ...
Hello:Error while running my application which was deployed into the jakarta-tomcat-5.0.28 application server ?IDE Eclipse 3.1 (MyEclipse4.0)I would greatly appreciate if you could help me to solve this issue!!!!!!!!!!!!!!!!!!!!!!Error as follows:2005-10-13 17:41:52 StandardContext[/cst]Marking ...
Hi I've installed the javax.comm. When I'm compiling I get the following error The import javax.comm cannot be resolvedCan anyone tell me what is wrong - or give some hints?/lars
Hi Pls help me!my java coding is in the following:package mypack;import java.util.Date;public class UserSession{private boolean isLogin=false;private String userId;private Date lastLoginTime;private int logCount;public void setIsLogin(boolean 1){this.isLogin=1;}public void setUserId(String ...
884 byte By
smerinoa at 2007-10-2 2:28:33
Hello ,I am developing a JSP page that calls a method from a Java class that I created (Helper.class) and compiles properly.Helper.java makes part of a package named package wtcore.jsp.admin.useraccount :package wtcore.jsp.admin.useraccount;public class Helper { public static WTUser ...
571 byte By
nusaira at 2007-10-2 2:29:29
I am using Eclipse as IDE and when i ran my servlet, In the log file present in logs folder of tomcat5.0 following is the detail of the error.2005-10-14 19:45:06 StandardContext[/MyFirstProject]Marking servlet org.apache.catalina.INVOKER.HelloWorld as unavailable2005-10-14 19:45:06 ...
I just complied something with no problems in Eclipse 3.2M2. I tried to compile using javac 1.5.0_04, and I get:[javac] An exception has occurred in the compiler (1.5.0_04). Please file a bug at the Java Developer Connection ( http://java.sun.com/webapps/bugreport) after checking the Bug Parade ...
Okay i know that this has been in the forum but i don't think it is the same for me this is my program:/**Cristina Burns Id # 225Cs219CS219Grades225 Program Week 2This program will calculate exams scores and averages*/import java.util.*;public class CS219Grades225{/** main method *//** Uses an ...
171 byte By
yash203a at 2007-10-2 2:32:25
I have a core generated from stripped version of java 1.4.1_02-06b,where can I get the unstripped version of java of same build so that I can debug the core.
hi, can anyone help me? I get this error when trying to load a java program:java.lang.UnsatisfiedLinkError: C:\Documents and Settings\CAM ANH\Application Data\Sun\Java\Deployment\javaws\cache\http\D67.18.221.154\P80\DM~comcallo\DMJARS\DMGame\RNDLL_Win32.jar\lwjgl.dll: Invalid access to memory ...
134 byte By
rafiqya at 2007-10-2 2:35:09
When i try to run a JAR file i get the following error:failed to load Main-class manifest attribute from - .... pls help
this is the code I get and keep getting booted from pogo and other games using Java I have JSE 1.5 An unexpected error has been detected by HotSpot Virtual Machine:## Internal Error (4E4D4554484F440E4350500521), pid=-918383, tid=4294365245## Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 ...
Hi ,Complexity NoviceProblem Description-I am trying to run a simple package related program.The package file is perfectly compiled and stored in the required path.When I try to access this package from another file -- the import statement does not seem to be working.It reports an error. ...
388 byte By
nusaira at 2007-10-2 2:37:36
Static means global and private means access within that class only. Then how come they both be applied in one method.following line describes the method which is declared both as static and final. Somebody please give me solution.private static Object lookupHome(java.util.Hashtable ...
Hello I am trying t execute an external python script. The script produces some output to screenwhat I do (as suggested is other posts) is the following:Process p = Runtime.getRuntime().exec("myPythonScript.py"); BufferedReader input = new BufferedReader(new ...
hi to one and all,i want to implement the sql query given below in jsp in execute query statement . the query is working in sql but not when implemented using jsp. please help me in resolving this. QuerySELECT e.Department , e.ETitle , s.basic , s.da, c.address1 , c.address2 from Employee e , ...