588 byte By
tleis1a at 2007-10-1 0:54:22
Greetingsguys, I 'm using morena package(doesnot matter what it is), and when i need to execute my application i have to use things like this:java -cp examples\examples.jar;javatwain.jar -Xmx128M -Xbootclasspath/p:javatwain_license.jar RunExampleplease, is there any simple tutorial to ...
What could the "brains" at SUN possibly be thinking.?I mean really, in jdk1.4 source (1.4.0_01) I found 51 occurrences in 30 files of "Enumeration enum = ..." So like them I have a lot of that in my code too. Now if I want to compile with jdk 1.5 I have to either user -source 1.4 option, or go ...
652 byte By
vvenka at 2007-10-1 1:03:27
Hello:When I ran the install program for jdk 1.4.2, it came back with an error message, "Java (tm) Update cannot retrieve version information from the targeted directory" and when I acknowledged this error message, it came up with another error message, "Error 1722. There is a problem with this ...
how much memory needed for jdk1.5
FriendsI have to access System registry of Windows 2000 by Java program. I don't know how to access the registry by using java code. Please help me. ElseI want to create a setup file for my application. before setup my application i have to check whether the system has JVM or not. If its not ...
Try this:c:\jdk1.5.0\bin\java -Dsun.boot.library.path=anything TestVMwhere TestVM.java is:public class TestVM {public static void main(String args[]) {System.out.println("DONE");}}Here's what I get as output:Error occurred during initialization of VMUnable to load native library: Can't find ...
Hi all. I have installed j2SE SDK 1.5.0 and NetBeans cobundle on SuSE Linux 8.1 pro.I'm working through the NetBeans IDE 4.0 Quick Start Guide.I get the following error when I click on a pop-up box.'Javadoc not found. Either Javadoc documentation for this item does not exist, or you have not ...
HiI downloaded jdk1.5 for linux.First I want to know what is the difference between jdk1.5 and j2sdk1.4.2_06 ?Which is latest version? I heared that 'jdk' is renamed as 'java 2 standard development kit' . Then why they named jdk1.5 for j2se1.5.0 ?I installed jdk1.5 in red hat linux 9 in ...
284 byte By
Kullgena at 2007-10-1 1:20:25
I believe I have seen the syntax for a ditry override in java before...somthing like...CustomButton = new CustomButton( x,y ){onClick(){System.out.println( "custom function for this instance only!" );}}am I insane?
Hi!I do not know which forum is good for this problem, so I try this one...The code below works well when executed by foot (...java showPic...). In the NetBeans 3.6 the frame refuses to show the pic, only an emty frame!Is it a bug?If anyone can help, it would be very nice ;-)import ...
Hi!I am trying to run java prg but i am getting the foll error:javac has encountered a problem and needs to close. i have installed j2sdk1.4.2_05 on my m/c.i have windows xp m/c. the appname is javac.exe. the appver is 0.0.0.0 and the offset is 00010104Here is the text of the error msg:<?xml ...
In the bug database, it's said that a bug that hinders me from using java web start on linux is fixed in version "5.0u2(b03)".Is there any way to get that specific version or a newer one for Linux?If yes, where can I download it?Thanks in advance,Frank-Ralph ...
1118 byte By
tleis1a at 2007-10-1 1:24:49
java.lang.UnsatisfiedLinkError: no javatwain in java.library.pathThis error I always got. I tried to mount javatwain.jar in the filesystem, I got the same problem.I tried to add it to the bool classpath and classpath from tools > options. again the same problemI tried to add the jar file to ...
1240 byte By
cskuehna at 2007-10-1 1:28:08
Hello,I've been using Sun 1 Studio CE, and more recently, Netbeans 3.6, with J2SE 1.4.2. I have some basic swing applets and servlets that I wrote for my business' web site.I recently downloaded and installed the new software bundle containing Netbeans 4.0 and J2SE 1.5. When I try to compile ...
Hi ,I am trying to call a command line application within a java file. Its working fine by using Process.getRunTime() method. But the problem is... I need to do this a couple of times in my program. one file will be generated in the first phase,... and this will be given as input to the next ...
Hi all, on win32, there are four executable name "java(w)" after installing JDK 1.5:1. C:\Program Files\Java\jdk1.5.0_01\bin\java(w)2. C:\Program Files\Java\jdk1.5.0_01\jre\bin\java(w)3. C:\Program Files\Java\jre1.5.0_01\bin\java(w)4. C:\WINDOWS\system32\java(w)Which java(w) command should I ...
Is there any documentation of the classes located in the JDK's tools.jar? I'm considering writing my own editor, and it'd be very useful to know exactly what I have to work with in terms of interacting with the JDK. I've looked around a bit, and I haven't been able to turn up
679 byte By
kfurba at 2007-10-1 1:51:18
My group is using Java 1.4.1 right now and encountering a bug that's forcing us to move to a newer VM. The cautious approach says we should just go to 1.4.2 since it's been well tested by now, but on the other hand, 1.5 has some performance and GC improvements that soudn like they coul really ...
I'm a newby in the Java world and I would appreciate very much if anyone could help me by providing me a detailed explanation / solution to my problem.I declared as double a variable and did the following substraction:myVariable = myVariable - 0.01several times till a condition was ...
How is it possible to print a{ with command: system.out.print{ "text { text"}; ?Thanks
148 byte By
tleis1a at 2007-10-1 2:05:14
I was able to display an image after acquiring it from scanner, now the question is how to save it? Is there any simple code, tutorial etc...
624 byte By
Raj75a at 2007-10-1 2:07:47
Hi,Currently we have an issue with our portal; occasionally the system hangs and stops responding completely. After analyzing the thread dump we noticed that all (most of) our threads are hanging at line, if(hashtable == null || hashtable.size() < 1)return null;We are currently using JDK ...
701 byte By
tleis1a at 2007-10-1 2:10:49
Hello// Arrayswhat is the difference between the following:int[] bits = { 8, 8, 8 };// andint bits = new int[]{8};// Imagesin the JAI there is some functions to find the maximum of pixel values of two imagesReenderOp im2 = JAI.create("max", im0, im1); the question is what are those values? I ...
757 byte By
tleis1a at 2007-10-1 2:10:56
Hello, I have an application that calls some function to display an image in a separate window, and If I close this window, my application is closed too.What should I type instead of System.exit(0) in the following code? public class ImageFrame extends Frame { WindowListener listener=new ...
I want to write a traffic generator, but I have no idea of how to send a packet on LAN arbitrarily. That's mean I can make packet with any form which maybe is illegal and doesn't accord with any standards. Is there any class to use for this purpose. Otherwise, what can I do. anything is ...
Hi,One of my .java file was getting compiled and executing properly in JDK 1.4.2. But the same java file when using a dependent jar generated with java version "1.5.0_01" and get compiled by JDK 1.4.2, I am getting this compilation error "class file has wrong version 49.0, should be 48.0".I ...
263 byte By
Jochema at 2007-10-1 2:21:12
Hey,I'm trying to match the "word" :) in a string.I use the following code: String.matches(".*:\\).*");But I get a PatternSyntaxException, so somethings not right with that code. But I can't find the error.Can someone help me?
392 byte By
pelhama at 2007-10-1 2:25:32
Tried to use the following syntax of "LIKE" in JDBC, but doesn't work with mysql 4.1:String jsql ="select IMG_ID,IMG_File_S FROM image WHERE IMG_Region=? and IMG_Tissue LIKE '%' ? '%' ";pstmt = con.prepareStatement(jsql); pstmt.setString(1, IMG_Region); pstmt.setString(2, ...
Hi,I have a problem that appears to be associated with jvm start up. I am running SuSE linux v9.0, Spring V1.1.3, Tomcat v5.5.6, jdk 1.5.0 , mysql-standard-4.0.21. My jdbc drivers are (both work with the same results): com.mysql.jdbc.Driver or org.gjt.mm.mysql.Driver contained in ...
779 byte By
s2noxa at 2007-10-1 2:32:05
I have just installed the 1.4.2 SDK, and are having problems viewing and using any java based program and any java applet. An example would be the JEdit installer, upon startup there is no text presented and will only display if a certain part of the window is clicked by accident. At which the ...
585 byte By
Jeff333a at 2007-10-1 2:32:33
I have a client that wants a Java app to run off a CD (for Windows) where Java doesn't need to be installed on the hard-drive of the computer. I have an older version of Java (1.3.1_08-b03) that can work this way. I simply have the Java directories on the CD.But I was wondering if there is a ...
230 byte By
konkia at 2007-10-1 2:35:46
I would like to know..1. What subnet are we in?2. What are the Ip address range in my subnet? Are there any apis available, or should we call system commands to get this information? Please let me know.
452 byte By
imotica at 2007-10-1 2:37:17
I understand that the source code is available online for 1.5. Is there a way to obtain the revised sourcecode for the newer release? I'd like the source to match the version installed because I use Eclipse, and I'd like to attach the source so I can see the source as I step through in the ...
hello,I have trouble to connect remotly to a jmx enabled jvm.When starting jconsole locally , i can connect an use jconsole.Trying to connect remotely does not work. I have setup roles and started the application the follwing way:> java -Dcom.sun.management.jmxremote.port=9930 ...
I have JDK 1.5.0 . I try to use Appletviewer but it doesn't work!This text explain the problem clearly (my english isn't good... sorry i'm an italian stupid guy...):[root@localhost carlino]# cd /usr/java/jdk1.5.0_01/bin[root@localhost bin]# ls -ltotale 3316-rwxr-xr-x 1 carlino famiglia 72760 ...
300 byte By
JockePea at 2007-10-1 2:57:46
When trying to uninstall Java SDK 5.0, I get the following error message (translated from Swedish "Ogiltig enhet: X:\")."Invalid unit: X:\"I really have to uninstall this SDK since it affects other installations that use Java too. What can I do to successfully uninstall SDK ...
Hi, lets say I have code that does:open "COM1"inStream = port.getInputStream();outstream = port.getOutputStream() start thread1start thread2thread1:while(true){sleep(2)outStream.write(0x01);}thread2:while(true){sleep(3)outStream.write(0x02);}Do I need to synchronize the threads' calls to ...
Hi, first a general question - how do I find out which java classes are thread safe?I have a class that holds things in a Vector, and looks roughly like:class Bla{private Vector storage = new Vector();public void addObject(Object n){synchronized(storage){ storage.add(n)}}public void ...
1642 byte By
kroaxa at 2007-10-1 3:03:34
I work on SuSe linux 9.2 professional with the JDK1.5.0.01 (J2SE(TM) Development Kit 5.0 Update 1), the last release at this date.When I attempt to compile the following code, the compiler crashes :import java.util.TreeMap; public class Generic { public <K> TreeMap<K,K> f(K type) { ...
209 byte By
yom1976a at 2007-10-1 3:04:50
Hi all,can anyone confirm that the 64-bit support for the Java 2 SDK installation will not intefere with other 32 bit java apps?Has anyone encountered any problems with this?Thanks.
I have the j2sdk1.4.0_04.rpmWhen I have given the rpm command The message isprepairing package to install.........package j2sdk-1.4.2_04-fcs is already installedThough I have uninstalled the package and reinstalled it the message continues.Please tell me how should I install ...
1527 byte By
snakea at 2007-10-1 3:08:25
public static int setSock5Proxy() {System.getProperty("socksProxySet", "true");System.getProperty("socksProxyHost", "192.168.1.16");System.getProperty("socksProxyPort", "1080");try {Socket ss = new Socket("200.50.11.130", 88);String ip = InetAddress.getByName("www.sina.com"). ...
223 byte By
arun_bea at 2007-10-1 3:16:10
Hi Guys/Gals,I need to read and write excel file with List and combo box avilable in that excel file. I tried with POI and JExcelAPI. But i am getting error. Thanks in advance for your help. It's very urgent.
316 byte By
moni123a at 2007-10-1 3:20:01
Hi,The contents of the .log file are as mentioned below,12/02/2005,12:30:06:09,12/02/2005,12:40:09:09,failure,ind-mhp1dxp0323In this I want to change the status from say "failure" to "sucess" for a particular line. I want the solution to do this using File Io , Random Access ...
692 byte By
smcgurna at 2007-10-1 3:40:07
I am building an application that creates a shortcut on the desktop. The shortcut information is populated based on the folder selected in the installer.My question is: can I have a value that contains single back slashes "\" when using java -D? The behaviour I'm noticing is that:java ...
After several thousand iterations on HotSpot Server VM 1.4.2_05, System.arraycopy()'s behavior appears to be inconsistent, in that the destiniation array is not always an exact copy of the source array. Also, once the point of failure is reached where the copy is incorrect, all subsequent ...
437 byte By
tleis1a at 2007-10-1 4:03:54
hello guys.I am tired for looking for a way to read certain pixels from an image, one of my fellows suggested to read the image as random files. which is read byte by byte and see what values are displayed. will it work?and if it will, I still believe that should be a better way to read pixels. ...
please help me in this regard. how can i print Helloworld by replacing the <condition> with proper oneif(<condition>)sop("Hello");elsesop("world");
242 byte By
felixxa at 2007-10-1 4:09:59
I have to get a reference where is written, when the first logging-Api in JDK is declared.I think the first Logger was included in JDK 1.4. But i can't found a reference. Does anyone know where i can find it?Greets Felix
140 byte By
moni123a at 2007-10-1 4:17:44
Hi, I want to convert the time ( which is available in the format hh:mm:ss ) into milliseconds. Suggest the code for the same.