I18N

416 byte By tobiasschmidtSa at 2007-9-29 17:02:45
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 ...

startup problem(urgent)

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 ...

install on solaris - corruption

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 ...

1.5 beta int/long performance issue

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 ...

Starting a jar file.

846 byte By talljames at 2007-9-30 2:41:47
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 ...

J2EE 1.4 Application Server doesn't start

3363 byte By Claudia-May at 2007-9-30 2:43:44
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 ...

AccessControlException ?

735 byte By Snaking2001 at 2007-9-30 2:45:04
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 ...

JDBC + Mandrake Linux + Mysql + netbeans

2159 byte By robertoneto123 at 2007-9-30 2:54:12
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 ...

How to run piped Unix commands

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 ...

Linux j2se 1.4.2 INTERNAL ERROR on Browser End: no manager for initializing

618 byte By qwarkykid at 2007-9-30 3:12:50
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 ...

eclipse plugins

178 byte By AndrewMcNaught at 2007-9-30 3:13:21
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

specifying timeout for calls on remote CORBA objects

1241 byte By davidcalkins at 2007-9-30 3:24:09
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 ...

How can to install package "j2sdk-1_4_2_04-linux-i586-rpm" into Linux OS

201 byte By VoHuynhVinh at 2007-9-30 3:28:24
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....

Generics problem in 1.5beta

487 byte By david.brooks at 2007-9-30 3:43:06
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 '[' ...

error: cannot open Packages index using db3

286 byte By djbaby2jaar at 2007-9-30 3:45:32
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 :(

Result Set error

423 byte By BrianMortell at 2007-9-30 3:46:46
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 ...

ExceptionInInitializerError

562 byte By Philippe-Sylvestre at 2007-9-30 3:46:47
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 : ...

'Illegal operation' and 'not found' on Win98

382 byte By E.L.D.E.R at 2007-9-30 3:49:37
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 ...

Scaning a document

349 byte By konchadavinod at 2007-9-30 3:54:29
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 ...

Null pointer exception

1164 byte By jim@caledonia at 2007-9-30 4:00:09
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 ...

NIO multi second delay when making many connections

29454 byte By richjvann at 2007-9-30 4:02:10
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 ...

Problem with java.util.Calendar

995 byte By Monsieur_le_Lud at 2007-9-30 4:05:06
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 ...

Unparseable date

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, ...

Java Version 1.4.1

364 byte By dbosprey1979 at 2007-9-30 4:09:01
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?

421 byte By MicroFanns at 2007-9-30 4:10:37
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 ...

OutOfMemoryError

672 byte By nirmitdesai07 at 2007-9-30 4:10:42
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 ...

J2SE 1.4.2_04 disappeared?

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?

Removing time informatin from java.util.logging

311 byte By chuck_113 at 2007-9-30 4:12:56
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 ...

Java Applet Behing Firewall

210 byte By Mahesh@idealake.com at 2007-9-30 4:13:14
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

745 byte By Naberus666 at 2007-9-30 4:15:58
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);// <- ...

memory leak? amd 64 bit using 1.4.2_03 program runs fine on other computers

5669 byte By Kitty__Kong at 2007-9-30 4:17:04
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 ...

Password

218 byte By jason_phyo at 2007-9-30 4:18:24
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

JRE upgrade to 1.4.1_04

628 byte By arunmah80 at 2007-9-30 4:18:28
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 ...

String modification

825 byte By anirudh_r at 2007-9-30 4:20:48
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" ...

java.awt.Font in JDK 1.5.0

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 ...

Auxiliooooooooooooo, Heeeeeeeeeelp

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...

Referencing a jar inside another jar

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

Could not find the main class. Program will exit.

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 ...

setting file permisions ,group permission on Windows and unix from java

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.

how can compile so many files?

358 byte By jordan2003815 at 2007-9-30 4:25:18
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 ...

getting action events from different class

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 ...

problems to instaling j2re 1.4.2_04

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 ...

Dynamic class loading at runtime issues

923 byte By chuck_113 at 2007-9-30 4:28:11
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 ...

Share my Java Five Chessmans game with all of you!!!

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

source code for rmic

228 byte By charuAgrawal at 2007-9-30 4:30:48
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.

can't use java.util.Formatter

1352 byte By yardie2000 at 2007-9-30 4:31:53
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 ...

Can't compile new language features in J2SDK 1.5.0

3741 byte By yardie2000 at 2007-9-30 4:33:48
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 ...

FileInputStream with jar

1329 byte By ambika_ind at 2007-9-30 4:34:50
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 ...

NEED HELP!! Dialog boxes

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 ...

JPasswordField

578 byte By jason_phyo at 2007-9-30 4:40:11
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 : ...