Access specifiers for interface methods

436 byte By suman at 2007-9-30 19:26:19
When we implement the interface ,we have to specify the implementing method access specifier to be "PUBLIC" ,but not "PROTECTED" or "PRIVATE".Compiler is giving an error -- attempting to assign weaker access privileges ,when we specify protected.what is the internal reason for this?Why we ...

Display files through an Applet from a jar

841 byte By slegeny at 2007-9-30 19:26:28
Hi,My current task is to take a file structure which includes an index.html file that points to another index.html file in a subdirectory "media", the second index.html file launches one of many swf files in full screen.I have been trying to find a solution to bundle all the swf files in the ...

Is javac.exe part of the jvm ?

38 byte By zips123 at 2007-9-30 19:27:02
Is javac.exe part of the jvm ?

What are the latest supported versions of JDK1.4.1 and JRE1.4 on Windows

462 byte By rahul_kohli at 2007-9-30 19:27:10
Please tell the latest supported versions of both JDK1.4.1 and JRE1.4.1 on Windows 2003.If no support is there for 1.4.1 versions then are there any higher versions.we have to port the application from Windows2000 to windows2003. On win2000 it runs fine on JRE1.4.1.But on Windows 2003 it is ...

Xalan classes in jdk1.5

421 byte By Krish_Sathish_Raja at 2007-9-30 19:27:43
My Java application works with 1.4.x versions of java.If I use 1.5, the following error is thrown :java.lang.NoClassDefFoundError: org/apache/crimson/tree/XmlDocumentI compared the jar libraries in 1.4.x and 1.5 and found that the xalan classes are missing in 1.5.What should I do to correct ...

Nokia Programming

398 byte By anflam at 2007-9-30 19:27:56
Hi,I'm Java junior programmer .I using Panasonic KX-HCM 270 network camera and Nokia 6600 i need to do a cell application to be able to view camera images on Nokia cell.If i try to do this, i wish using the same application to comand panasonic camera.I'm looking for any help, suggest and ...

import * ?

291 byte By ludovicmaillet at 2007-9-30 19:28:57
Hello,Little question: what is the disadvantage doing an import * instead of a import of the precise class we need.For example, if I'm using only a Hashtable, is this really bad to do an import java.util.*; instead of an import java.util.*; ?ThanksLudovic

resultset processing

304 byte By g0pal at 2007-9-30 19:29:10
I get a resultset after querying a SQL on the database. This resultset is very big and I want to divide this resultset into 4 parts and run 4 threads to process the 4 parts. How to do this? This will happen in a batch job as a background process in the night batch ...

JDK1.5 s/w is freezing ?pls explain urgent

324 byte By vinaii_naraprasad at 2007-9-30 19:30:15
Dear sir,I have created a GUI network s/w with the help of Java.net,java.util packages,when i run the application the GUI simply hangs.Is there any problem with the new Beta version of tiger jdk1.5, since my application is working fine in jdk1.4 version.Please help me.Regards,Narasimma ...

Problem installing SDK

433 byte By Irfreh at 2007-9-30 19:30:59
Hello post readers,I am having a problem installing the J2SE SDK. The error that comes up when installing is as follows."Error 1311. source file not found :\documents and settings \irfan\local settings\temporary internet files\content. IE5\LHMX GoMK\ Down [ I ].htm. Verify that the file exists ...

Error while compiling java file using J2SE 1.5.0

549 byte By Suketu_Naik at 2007-9-30 19:32:08
Dear Sir,I'm getting the following error while compiling the java file.The code is also given.package test;public class TestRowSet { public TestRowSet() { }}"TestRowSet.java": cannot access java.lang.Object,bad class file: D:\Program ...

Java Application Server

245 byte By _anagram_ at 2007-9-30 19:33:39
Hello,I've got Sun Studio One for a free trial period (90 days) and I can't start the application server. The domain is always invalid.How can I do please ?Thanks !Sorry, I'm not sure it's the good forum...

generic arrays in List<T>.toArray(T[])

607 byte By GarretWilson at 2007-9-30 19:35:26
I have a list of MyClass, and I want to turn it into an array. I try:myObjectList.toArray(new MyClass<String>[myObjectList.size()]);But Exclipse 3.1M2 complains that I "Cannot create a generic array of MyClass<String>." I change to:myObjectList.toArray(new ...

J2SE 1.3

84 byte By PrabhuSai at 2007-9-30 19:36:41
Does j2se1.3 pssess an inbuit logging Systems ? If not, how to implement it ?

Logging and Exception Handling

49 byte By PrabhuSai at 2007-9-30 19:36:42
How to do Logging and Exception Handling ?

'jar' is not recognized as an internal or external command

545 byte By kiran.maheshwari at 2007-9-30 19:37:59
Hiafter insatlling j2sdk1.4.2, when i try to give the command jar -? or javac -? from outside the bin directory of javahome, Error ocurrs as "'jar' is not recognized as an internal or external command, operable program or batch file."The class path set is ...

Difference

119 byte By Igorek at 2007-9-30 19:38:32
What are differences for Java Standard Edition and Enterprise Edition. And which of them is better for new user?

Compile errors under JDK 1.5? It compiles fine under 1.4.x

3439 byte By tmulle at 2007-9-30 19:38:50
Can someone please try to compile these two classes under JDK 1.5.. the same exact code compiles under 1.4.x...import javax.security.auth.spi.LoginModule;import javax.security.auth.Subject;import javax.security.auth.login.LoginException;import ...

Best way to kill a non java process from java?

460 byte By dbresstecore at 2007-9-30 19:39:35
I have a java application which is responsible for auditing a separate java application, and a c++ application (neither of which it has Process object's for) If i want to kill either of these processes what is the best way to do this from my java application? A native call? batch script? can ...

Problems with a cell renderer

935 byte By buff5000 at 2007-9-30 19:39:44
I'm experimenting with cell renderers for JTables.I tried to add a renderer so that I could change the colour of the text that is displyed depending on whether or not data has been selected. Once the renderer has been added, all that happens for that column is that no data is displayed and the ...

JDK5.0 Compile Error

360 byte By mxie2004 at 2007-9-30 19:40:18
I successfully installed JDK5.0 on my Wndows2000 (SP4) laptop, but when I started using it to compile even the simplest Java program, I got the following error:The system is out of resources.Consult the following stack trace fro details.java.lang.OutOfMemoryError: Java heap spaceI am stuck here ...

Puzzled need help: Problem with logging API

1550 byte By yantriki at 2007-9-30 19:40:39
Hi All,I am initialising LogManager in my application and creating several loggers, depending upon my application module. I am unabled to print anything in the log files or the console. I am puzzled, 'cause I am doing the same thing in another application and it is working. I would really ...

Installation problem

492 byte By Freelancie20 at 2007-9-30 19:41:02
Allright, i having an installation problem, when i finished download JDK 1.4.2(J2SE SDK 1.4.2 CURRENT VERSION [j2sdk-1_4_2_04-nb-3_6-bin-windows] ), I've failed to install, i don't know what's the problem, but there was a message appeared, that's -> CreateProcess failed -> %1 is not a ...

Is it ok to run 1.5 with 1.4 on the hard drive?

640 byte By wecoxepa at 2007-9-30 19:41:29
Hi. If anybody has a minute, I think I remember having problems with havng two versions of the sdk on the hard drive. I was thinking of uninstalling 1.4.2 before I install 1.5 but I do not see an executable uninstall file. Is it ok to install 1.5 under a different directory while leaving 1.4.2 ...

static imports in 1.5

568 byte By glrao at 2007-9-30 19:44:12
same static variable and same static method exists in two diffrent classes, while importing these two in my own implementation class follwing different output is coming why? Using j2se version1.5while using variable imports likeimport static package.Class1.variable1;import static ...

J2SE 1.5 installation problems

732 byte By Johnny_D. at 2007-9-30 19:44:57
Greetings to all,I am having problems with my JDK 1.5 install. I have downloaded the appropriate file and run the install and the install runs without a hitch. However, it appears as though I have the JRE only as I am missing tools such as javac.exe and javadoc.exe.The file I download from the ...

which one will be safe?

199 byte By sivakm at 2007-9-30 19:49:34
Hi! why people are always going for Client side validation instead of Server side validations?.what will be the advantage of doing client side validation?Thanx-Sasi

Encoding in java

273 byte By javabb at 2007-9-30 19:49:45
I have a server running on java and client running on c. The client may send me data in chinese or english. How do i decode and encode the strings? When i try to display chinese unicode character on the screen ? are displayed.Please help me. Thanks in advance

parsing a text file

826 byte By Farzad.s at 2007-9-30 19:50:04
Hi, I'm trying to parse a text file and create another text / XML file based on the structure of the input. I would really appreciate any help.Bellow is a part of my input and i'm intrested in parsing the input and find the Element Name and the links inside that element. Then based on the ...

byte to int to byte

909 byte By dams@boulot at 2007-9-30 19:51:11
Hi,Here is my problem : public class test {public static void main(String[] args) {int val = 169, val2 ;byte test = (byte) val ;val2 = test ;System.out.println("Value of "+val+" is "+val2) ;}}prints: Value of 169 is -87I found this solution:public class test {public static void main(String[] ...

encoding of java source files

241 byte By hnemarich at 2007-9-30 19:53:19
I've sucesfully compiled java source files (*.java files) over a lot of different encodings (ANSI, Unicode, UTF8, etc). My IDE (Eclipse) has Cp1252 as default on WIndows OS. There is an 'official' encoding for source files ?

String Pattern Matching

1138 byte By Heloisec at 2007-9-30 19:54:38
Hi,I am working on a project that needs to identify a particular String from another String, however, the location where the match will occur is unknown. For example, I would want to identify a line that includes operators such as "++" or "--".if (Pattern.matches("++", lineSplit[j])) { .... ...

missing jarsigner.exe

139 byte By vermelh0 at 2007-9-30 20:01:08
Hi,I have installed jdk 1.5.0 and cannot find jarsigner to sign my jar application. What has sun done to the exe file?

Application acting as a user to a second app

648 byte By Curt_Hill at 2007-9-30 20:02:07
I am trying to write an application that grades a second application for the intro to programming class. In order to do this it must start the second app (which is not hard) and then obtain the handles of components that a user would normally interact with, such as Buttons, TextFields, ...

oracle.jdbc.driver.OracleDriver() problem

1392 byte By Gyro-equals-new-trojanHorse at 2007-9-30 20:02:58
Hi guys. I am taking a dbsystems class at school. We are required to connect to the schools oracle db using this package: oracle.jdbc.driverthe code provided by the profesor is meant to be used by logging into unix accounts on the schools servers and running our java programs remotely. I've ...

Reading numbers from file

612 byte By balakumar at 2007-9-30 20:03:29
I have a text file that contains numbers & characters stored iin a particluar format something like this20041001080061 180 200410080000 1 ()2 90 200410010900 5 ()3 180 200410081700 2 ()4 600 200410081700 1 ()5 360 200410081700 2 (3,4)6 10000 200410081600 4 ()if i use datainput stream to ...

Jpanel nt showing correctly help urgent !!!

957 byte By robinang81 at 2007-9-30 20:06:06
[IMG] http://img3.exs.cx/img3/8571/error27.jpg[/IMG]The one in red is the one i am having prob with....below is the codes for the JPanelprivate class DetailsPanel extends JPanel{JLabel speedLabel = new JLabel("Simulation Speed");JLabel timeLabel = new JLabel("Elapse Time");JLabel speedTag = new ...

ScreenResolution

141 byte By TheInsider at 2007-9-30 20:06:13
is there any class or method or even an interface to getthe screen resolution of the working platform ?thanks in advance

J2SE Development Kit 5.0 and Netbeans 4.0 Beta 2 Installation

563 byte By ajk52 at 2007-9-30 20:07:00
I'm trying to install the sdk with netbeans which i downloaded from the sun website but I keep getting the following error:WARNING: M:\ partition has insufficient space to install the items selected. 39.7 MB additional space would be needed to install the selected items.I'm trying to install ...

Changing Cursor Color

63 byte By TheInsider at 2007-9-30 20:07:45
can i change the cursor color beside changing its type ?

reading characters from text files

2330 byte By Zebediah at 2007-9-30 20:07:50
I am trying to make a game, which will involve going around and fighting things, ect. The important part however, is the fact that I would like to have a set of boards, one from each text file. however, I really only want to read one 100*100 array of ascii (or whatever .txt files are saved in) ...

bad class file error

587 byte By PrabhuSai at 2007-9-30 20:08:17
When UserDao.java is compiled , the following error is displayed.classpath is set to net Package;QuerParser.java is compiled succesffuuly.UserDao.java:29: cannot access ecnet.ism.efc.utilities.parsers.QueryParserbad class file: ...

static imports within the same package

643 byte By stscit04 at 2007-9-30 20:09:14
Hi, I am trying to get static imports to work with asimple sample project. It consists of 2 classes, both in the same package (the default package - means no package)./class1/class2The static import of class2.*; in class 1 fails withcannot find symbol // symbol: class Class2 // import static ...

Java Installation

187 byte By Aswin at 2007-9-30 20:12:04
How can i find whether java is installed on my win xp system or not USING java? Also is it possible to find the same in linux. Im using JDK1.4.2? Please help and thanks in advance.

Process Id in Unix

109 byte By javatrend at 2007-9-30 20:14:28
How can i get process id of the java program being executed in the unix environment programatically .

DOC2TXT or atleast DOC2RTF

778 byte By kapilChhabra at 2007-9-30 20:15:19
Hi,I have to read the MS-WORD .doc file into a String and perform text operations on it. I might even need to save this string to a file. Basically i want to convert .doc file into .txt file.To do this I found 2 products, viz:1. POI by apacheand 2. text-mining0.4 by www.textmining.orgi am ...

Count Chars only

2672 byte By longieirl at 2007-9-30 20:15:36
Hello,i ahve this piece of code which works but i need to tweak it so that it counts only chars and not integers. Any help is appreciated....ry {FileReader file = new FileReader("GoogleKey.txt");// Open the file.input = new BufferedReader(file);//StringBuffer adam = new StringBuffer();// Tie ...

Xerces-J Help

205 byte By papasix at 2007-9-30 20:18:04
i have downloaded Xerces-J-2_5_0, i have the jakarta-tomcat3.3.1 on widows XP and j2sdk1.4.0the problem is not knowing how to use the classes in the Xerces,please help me.thanks

How to know which (java) command in working

285 byte By tleis at 2007-9-30 20:19:04
Hello, I have Java j2sdk1.4.1 as the default java mahine. (i.e. the java command works from any directory)but i have also j2sdk1.4.2_05. my question is, when i open the bin directory of the j2sdk1.4.2_05 and type : javac myfile.javawhich compiler will work?

Direct me to TWAIN

517 byte By tleis at 2007-9-30 20:19:07
GreetingsIn the past I was developing a software that needs to open the Twain software, I searched a lot to find only the commercial Asprise software that expired after 30 days.Now I need to continue developing my software, and I want some way to open the Twain Software, and allow my ...