Hello Gys,need urgent help. After working on my first question another one rises up. I am too stupid. Here is my code:String test = "\u0441";String test2 = "";byte[] bytes;bytes = test.getBytes("UTF-8");test2 = new String(bytes,"UTF-8");System.out.println(test2);And the output is "?", but i ...
2836 byte By
vimal_jk at 2007-9-30 2:29:20
i have install eclipse 3.0 in my system but when i am running the eclipse.exe it is giving the small message box telling that problem in start up and asking to find out in log file in workspace the error in log file is as follow !SESSION -!ENTRY org.eclipse.core.launcher 4 0 Mar 08, 2004 ...
646 byte By
kkrdi at 2007-9-30 2:33:35
I am attempting to install j2sdk on solaris, using either the tar or the self-extraction method. I am able to download the file, but when trying to unpack it I get the following error:uncompress: corrupt input tar: directory checksum errorI used the following command for the tar file:zcat ...
1530 byte By
inco5 at 2007-9-30 2:40:34
It would appear that 1.5 is noticeably slower when doing simple addition on int and long values. 1.3 and 1.4 have similar performance charateristics. I have not tested other primitive types or other mathematical operations. All tests were performed on an AMD Athlon XP 1700+ using Windows 2000 ...
I am wondering if anyone might have a suggestion to this.I have created a .jar file from JBuilder using the application option in archive builder. ie the jar file should be able to start just by double clicking it. I take the jar file to one of my other machines and it starts fine. I use the ...
I have downloaded Java 2 Platform, Enterprise Edition 1.4 SDK Developer Release from http://java.sun.com/j2ee/1.4/download-dr.html for Windows XP and installed it without any problems on Windows XP Pro SP1.I can compile with javac the .java file und run with java the .class file. But I can't ...
I have a applet,can use slider or choice or JavaScript call to call a method for read data file. Everything is ok ,and I continue another unfinished coding.But suddenly,after one compile, the test of the JavaScript call is failed,but the same method called by slider and choice is still ok. the ...
I'm trying to conecto to a mysql server using the following code of netbeans. It compiles, but I got a java.lang.NoClassDefFoundError on execution time.Does anyone have any clue of how to solve it?(I got the netbeans+sdk package, is it complete? Maybe the jdbc class is missing? Where can I get ...
472 byte By
kobaia27 at 2007-9-30 2:55:32
Hi,I'm trying to run piped Unix commands using Runtime.getRuntime().exec(...) but apparently the pipe symbol ("|") doesn't seem to work...Here is basically what I'm trying to do: running "command1 | command2" where both "command1" and "command2" have dynamic values. I could create a shell ...
I have just installed j2sdk1.4.2_04 and NetScape 7.1 on Redhat Linux 9. After following the instruction to enable java in the browser by issuing the command:ln -s /usr/java/j2sdk1.4.2_04/jre/plugin/i386/ns610/libjavaplugin_oji .(note the final period)then restarting browser, I get the following ...
i'm trying to run the omondo uml plugin for eclipse but can't get it to work. can anyone give me a step-by-step account of how to install this plugin for eclipse
When using a remote CORBA object from a Java client, we make use of a periodic heartbeat call to ensure the remote object is still available.If the process hosting the remote object dies, we get an exception back immediately after making the call which helps us to know that we need to ...
I'm a beginer study about Linux & Java. Now, i want install "j2sdk-1_4_2_04-linux-i586-rpm" .....but i don't know how can to do.... ? Help me !!! ............I'm waiting....
I'm having trouble getting generics to compile using javac 1.5.0beta. I expected to be able to compile the following line:ArrayList<String> strings = new ArrayList<String>();but I get the standard error report you'd expect from javac 1.4'(' or '[' ...
core-server:/javainstal# rpm --install j2sdk-1_4_2_04-linux-i586.rpmerror: cannot open Packages index using db3 - No such file or directory (2)error: cannot open Packages database in /var/lib/rpmcore-server:/javainstal#can eniwan help me pls :(
Im getting the following error, where the program completely crashes out.... Exception java.sql.SQLException: Closed Connection: nextIm retrieving data from one db and updating another, however after retrieving data fron one db, the program kills itself. My methods are synchronized and the ...
Hello,I work with JBoss on a Redhat 9.0 SMP on a bi-processor computer, and i've deployed an application under this environnement.This application is composed of an EJB jar file and and EAR file.And when i made an XML parsing, (apparantly), i have this error : ...
Hi,5 times have I downloaded J2SE SDK and 5 times have I had the error message 'This program has performed an illegal operation and will be closed down' when I try to open it. Also, when I try to install FreeMind software, which requires Java 1.4, I'm told 'Java not found'.Any ideas ...
Respected sir, i am facing a problem with scaning a document using java code....i want to know . one morething is how much data it can scan at a strech. Basically in my project there's is a log file...... which is consisting of my project errors.....i want to scan that particular log file ...
I am new to java and would really appreciate some help. I am working on a form design to capture data and save it to a server where I can reload it and manipulate the data when required. I have designed the form and am able to save/reload it locally. The problem I am having is with a choice on ...
I wrote a test client that makes hundreds of non-blocking connections to a test server which simply waits until all connections are made and then returns a canned response on each connection and then closes the socket. When I run these tests with 100 connections where the client and server are ...
I have a Problem with java.util.Calendar.It is best expressed by the following short main function:import java.util.*;public class CalendarProblem { public static void main(String[] args) {// problem also encountered in other LocalesCalendar cal = new ...
736 byte By
kentkent at 2007-9-30 4:08:53
Dear Java Gurus,Locale theLocale = Locale.GERMANY;Calendar calendar = Calendar.getInstance(theLocale);Date d = calendar.getTime();System.out.println("Supposedly localised string: "+ d.toLocaleString());produces:Supposedly localised string: Mar 23, 2004 10:02:31 PMWhich seems to make no sense, ...
I have been using 1.4.1 for some time now have experienced flaky behavior when running tomcat version 4.1.17. I have found many posts suggesting that 1.4.2 was much more stable and also noticed 1.4.1 has reached the Sun End Of LifeCycle status. I have not seen this happen to other java ...
How to run a flash application(*.swf) in java application? I have developed a flash program with macromedia Flash.And I should run it in a java application,but I don't know how can? There are KeyBroad,Mouse events respond in the flash program.Can you tell me how I can import and run the flash ...
friends,I am retrieving records (500,000 and more) from, one or more, databases using two SQL queries. I compare each record and if it I record the comparison result.Now I am having following problems1.How do I write to a file so many records and save myself from getting the above error.2.How ...
121 byte By
hutuworm at 2007-9-30 4:10:53
I've found that J2SE 1.4.2_04 was rolled back to 1.4.2_03 in java.sun.com's download page.But why?
Hi, I am using the logging api in java 1.4.2 and was wondering how to remove the data, time, class and method information which is outputed before each log entry, such as:Mar 24, 2004 11:27:06 AM pluginManager.MyClassLoader getAllJarsAny advice would be appriciated.Ck ...
I am using the URL Object to download data using HTTP Protocol , but i cant do that if i am accessing my Applet behind the firewall.Please be free to reply if you have the solution for it.
StringIndexOutOfBoundsException: String Index out of range: 13 I'm getting this error on the following code: public URLReader(String URL){String inputLine;int k, inicioNome, tamURL = URL.length();System.out.println(tamURL);// <- Displays the right valueSystem.out.println(URL);// <- ...
I have a program that runs fine on a red hat linux desktop and a pentium 1.6ghz xp pro laptop but on my amd 64 bit 3400+ xp pro desktop after ~20 seconds it slows to a crawl. i was originally using j2sdk1.4.2_04 but noticed this was not available for download anymore so i switched to ...
Does any one know how to type passpword in console. If we type anything anything in the console, it will appear on the screen. Is there any way to code so that the password will appear as ********. Thanks
Hi,We have a client application thats written in JAVA Swing which currently uses JRE 1.3.1. Recently the JRE version in client machines has been upgraded to 1.4.1_04. We would like to recompile our existing application in Java 1.4.1_04. But currenly this version is not supported by Sun. Only ...
Hi,I got one situation when working with java.lang.String. I would like to explain with one simple example so that I can be clear.originalString= "HANDICRAFTS (MADE OF BRASS, COPPER, IRON, WOOD, BAMBOO, WICKER, PAPER, PAPER MACHE, LEATHER, )". I would like to replace the set of characters "ER" ...
489 byte By
nardo12 at 2007-9-30 4:22:35
Hi everybody!Ive just update to jdk1.5.0 and recompiled my project. With jdk 1.4.03 everything works properly, but now, i get this error:cannot access java.awt.Font,bad class file: C:\Archivos de programa\Java\j2re1.5.0\lib\rt.jar\java\awt\Font.class,class file has wrong version 49.0, should be ...
251 byte By
siervo at 2007-9-30 4:22:47
Disculpen la molestia seores, gurus de Java , alguienn me podr a decir de que manera puedo caragar archivos de video en mis aplicaciones?How do i can to load videos in my Java applicactions?sorry, for my horrible english...
153 byte By
pja73 at 2007-9-30 4:23:13
Hi All, If there is a jar "B" inside jar "A", how to include jar "B" in the manifest's classpath of jar "A"?Regards,P
553 byte By
dbh14228 at 2007-9-30 4:23:25
I have a jar file that I can run fine with java from the command line in Windows. But if I try to run the same jar file from the Windows user interface by double-clicking gives me the error message that says"Could not find the main class. Program will exit."Has anybody ecountered the same ...
187 byte By
rpshekar at 2007-9-30 4:24:06
Hi i am trying to set up file permissions through java on unix and windows operation sysyem.I don't want to use shell scripts .thank you for your help.
when i compile some java files(total :2012),it report a error like this:"The system is out of resources.Consult the following stack trace for details.java.lang.OutOfMemoryError"how can i resolve the memory problem? my machine memory is 256M,and i set vitual memory as 500M. what can i do? pls ...
829 byte By
latafat at 2007-9-30 4:26:47
Hi there,I am working on a program where I have two classes, and both have buttons. When any of the buttons in the first class are selected I need to know which button it is so I can take the appropriate action in the second class.I have tried using the following:First class ->class ...
377 byte By
martixgn at 2007-9-30 4:28:01
when i click the file j2re-1_4_2_04-windows-i586-p.exe the next message show:error reading setup initialization file, i am migrating my swing application to 1.4.1_02 but te repaint is very slow, i hear in this forum that the 1.4.2 repaint better but i cant instaling, what can i do?, the 1.5 ...
Hi, my system works by loading lots of classes located in numerous jars at runtime, it works ok but there are a few things i would like to resolve.1. When i come to implement an interface that is located in a jar with my IDE, the names of method variables are lost. So instead of the method ...
268 byte By
WuYuPing at 2007-9-30 4:29:35
Please view my game at my personal website at following address: http://www.wuyuping.comYou can try to play around with it, you may found it is not easy to win the game, anyway i hope you will enjoy the game!SincerelyWu Yuping
hi all ! I am working with RMI trying to give it an asynchronus flavor. I want to know from where can i download the source code for rmic compiler that generates the client /server stub and skeleton classes.
I just downloaded and installed J2SDK 1.5.0 and am trying out the new language features, however I can't seem to get any java.util.Formatter examples to work. Simply cut and paste from the docs of the code below won't compileStringBuilder sb = new StringBuilder();// Send all output to the ...
I've installed J2sdk 1.5.0. on Windows 98 and Linux, however I can't seem to compile any code with the new language features. I've tried various code sampels from http://zamples.com/JspExplorer/samples/samplesJDK1_5.htmlwhich run fine from the plugin.. however compiling them locally gives ...
Hello everyone,Am having a small problem in reading from ajar file.The size of the jar file is 611 bytes.When I try to read thejar file using FileInputStream alone i get some value for j but whenI use it along with JarInputStream and check the value of j it is-1.The FileInputStream is working ...
10501 byte By
Siteoner at 2007-9-30 4:37:42
I made my dialog boxes fine. I am having problems with the actionlistner section. I am having trouble displaying the dialog box..Here is the code:(I believe the main issue is in the public void actionPerformed(ActionEvent e)import java.awt.*;import java.awt.event.*;import javax.swing.*;public ...
I'm having trouble with JPasswordField. JPasswordField has a method getPassword() which return the password as char array. Although I wrote char[] p=pwd.getPassword();, it still give me erroe. Below is the error msg. Can any one help me with this, thanksjava:90: cannot resolve symbolsymbol : ...