357 byte By
boyedav at 2007-9-30 17:53:16
I have a class named ParentClass with a public method named getName that takes a String as a paramenter and returns a String.If I extend ParentClass, how can I use reflection to access the getName method of the parent (super) class? I get a NoSuchMethodException if I try to get the subclass to ...
I want that by clicking a button in a applet that GUI containing that button and other things get removed and other one comes in its place.So I wrote code in event handler for that button. This code removes previous AWT controls and add new ones.Resulting application compiles fine. But at run ...
import java.io.*;public class Chooser{ private static String students[][] = new String[5][2]; private static int row = 0;public static void main(String args[]){ try{ BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter your name: "); String s = ...
254 byte By
atw208 at 2007-9-30 17:56:35
Between versions. For example, I was looking at the Serializable interface and it's "since Java 1.1". But does it function the same as in Java 1.1? The documentation doesn't say that anything's new since Java 1.1, but would it if it did change?
Why isn't the Java.AWT.Peer package included in the JDK documentation? At first, I thought that it was only 1.5 where it was missing, but it's not included in the other JDK versions either. Where do I go to get information on this package?
117 byte By
bob60 at 2007-9-30 17:57:07
is any application exists that can package java applications+jdk so that coud be installed in other computers?
hihow to change double or int to a Stringthanks
hihow to change double or int to a Stringthanks
3524 byte By
Hedonist at 2007-9-30 18:02:39
Hi, I am accessing an object in session from a servlet. I am getting the following errors when I deploy app. any ideas?2004-09-20 09:31:21,593 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exceptionjava.lang.NullPointerExceptionat ...
115 byte By
RSriha at 2007-9-30 18:05:09
Hi All, Can you pls tell me how can i access class which is outside the package. Thanks!!Rgds,
164 byte By
RSriha at 2007-9-30 18:05:11
Hi All, i hav a class which has friendly scope in package X. how do i access it from a class in package Y without declaring it as public.Rgds,
331 byte By
maxdean at 2007-9-30 18:07:31
this is a question of my exam.i cannot solve it at all. please help me slove it.i will thank you indeed!!!the questiuon in the website: http://gearoid.net/china.Then you can enter the "ood notes" and download "usst bank'" and "CoverSheets and Deliverables" under the topic of "Assignment".Thank ...
735 byte By
Sami100 at 2007-9-30 18:07:36
Hi!I am Finnish computer teacher in highschool. Last summer we had new computers in our class and SDK doesn' t run any class files anymore. For example following code:public class Moi{public static void main(String[ ] arguments){System.out.println("Moi");}} javac Moi.javaEverything goes very ...
Hi Guys,The value of -1 returned from the FileInputStream's read() method indicates the end of file.But what if the file being read has "-1" in it ?thanksV
1351 byte By
wolalona at 2007-9-30 18:09:13
I had been using a software called ImageJ ( http://rsb.info.nih.gov/ij/)with both j2sdk1.4.2 and j2sdk1.5.0 beta without any problems.I downloaded and installed j2sdk1.5.0 RC and when I tried toopen an image I got the following messagesjava.lang.NullPointerException at ...
Is there any improvement in the latest J2SE 5.0 concerning memory management? Setting the maximum memeory via "-Xmx" is just not flexible enough for todays server applications. Does 5.0 return unused memory back to the operating system?
207 byte By
waltereo at 2007-9-30 18:13:21
Hi, I wonder why Sun does not provide a J2SE or J2EE without installer ?I have to use different version of the JDK and it is so useful to have a zipped J2SE without installer !Tkx
Hi everybody.I have developped a quite simple J2SDK application that will be installed in several PCs.Since some steps are necesary for installation (downloading JRE, copying jars, etc), I wonder if there is a free tool that allows to make instalation easy for end user ?(something like ...
Hello.I am trying to access http pages using the class URL, to get an InputStream from the class URLConnection after connect () (using getInputStream()). But it doesn't work !!!I have tested with "file" protocol and it works.I have tested with "localhost" web server address and it works.But ...
Dear Friends. Which is the best method to use in looping ? For loop or While lopp. Please give me some idea about the performance.Thanks in advanceShaiju.P
1168 byte By
buff5000 at 2007-9-30 18:18:33
I have a JTabbedPane enclosed in a JFrame. One of the tabs is a JPanel on which I am trying to get the use to press the arrow keys to move a cursor. in order to override the consuming of the keyboard events i have tried to transfer the focus of the wondow to this JPanel whenever that part of ...
85 byte By
sasi150 at 2007-9-30 18:22:20
Hi!How can i increase the space volume in JVM?Thanks-Sasi
85 byte By
sasi150 at 2007-9-30 18:22:21
Hi!How can i increase the space volume in JVM?Thanks-Sasi
90 byte By
sasi150 at 2007-9-30 18:22:25
Hi! what is the difference between Scroll sets and Result sets? -Sasi
88 byte By
Gajanta at 2007-9-30 18:22:43
what software should i donlowd to compile and run java programs , classes?
106 byte By
fajayaja at 2007-9-30 18:23:28
hii can not find when final realse for j2sdk 5 will be availble.thank you in advanced
I have an application that uses JInternalFrame. Except for one, all the frames have the following:this.setResizable(false);this.setClosable(false);that one frame has both of them set to true.now, the problem comes on i follow the following steps:1. i open 1 non-resizable frame.2. with that ...
385 byte By
marc79 at 2007-9-30 18:23:38
Hii all,Firstly, I'm rather new to Java technology and I'm currently working on a school project. I need some help with: uploading of an image file to an online database server(MySQL) and, retrieving the image from db(I'm using BLOB type) for display in Java.I'm not familiar with the ...
Hello,I'm learning JNDI with com.sun.jndi.fscontext.RefFSContextFactory.I've got a problem. I try to list a directory and I get Objects. But I can't cast them into an instance of File.I do this :_p = new ...
758 byte By
bhamail at 2007-9-30 18:25:04
I'm seeing a new behavior regarding when static code blocks run in jdk 1.5.In earlier VM's, the static block in the following code would execute as soon as I called MyClass.class.getName().I never had to actually call a method on the class.MyClass class { static String myStaticString; // ...
i have windows xp pro with sp2.....java compiler:java version "1.4.2_05"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)whenever i run code below it gives me error:code-import java.awt.*;import java.applet.*;import ...
Hi , i am new to java ( know c++ ) and im begining to learn java , i am using mac os x terminal and i got this code from a tutorial:class myfirstjavaprog{ public static void main(String args[]){System.out.println("Hello World");}}i saved it as hellowworld.java then i did the folowing ...
213 byte By
sasi150 at 2007-9-30 18:31:03
Hi! There are 2 ways to create the Thread.one is by extending the Thread method and other by implementing the Runnable interface.which one will be more advantageous.what is the reason?.Thanks,
Hello, im just a beginner in java and sorry if this problem will look so weird. I wanted to link 2 java file, for example me and my friend had come out with 2 seperate java file (a.java & b.java). a.java is the main file where it load all the frame and button and b.java is another type of ...
270 byte By
J_Town at 2007-9-30 18:31:37
hi, AllI met a problem couldn't be solved.I don't know run a specified path jar. For example, test.jar in c:\, I want run the jar anywhere on my computer, i worte a bat file like that java -jar c:\test.jar , but the bat file couldn't work.
277 byte By
J_Town at 2007-9-30 18:31:38
hi, AllI met a problem couldn't be solved.I don't know how to run a specified path jar. For example, test.jar in c:\, I want run the jar anywhere on my computer, i worte a bat file like that java -jar c:\test.jar , but the bat file couldn't work.
I am using JDK (SE) 1.2.2 for running a data acquisition application software using Serial Comm Port. Suppose the desktop PC (Win'98) is connected to the internet. Is there any way to send short message (SMS) to a mobile phone in case of occurrence of any error?If not, is it possible through ...
91 byte By
sivakm at 2007-9-30 18:33:03
Hi!I am new to java.How can we make one object as synchronizable?Thanx
Just wanted to you what would be a better J2SE or J2ME for a mobile applicartion?
Hi everyone,I would like to use log4j in an applet. Unfortunately I couldn't find any example. Is there any documentation which shows how to configure log4j with applets?Or does somebody have an example for me (applet and log4j.xml) which shows how to realize logging with log4j in an ...
8468 byte By
peixin at 2007-9-30 18:34:27
Hello experts:I got this error message when I was runing debugger in loading an image and measuring the image.I am using Jimi to load images and the the detail infor is:Any help is appreciated.## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION ...
435 byte By
tleis at 2007-9-30 18:35:44
HelloI have the following package:package levelone.leveltwo.leveltree;and i want to import the follwoing import levelone.leveltwo.*;Upon compilation, I got a "Cannot Resolve Symbol" error, indicating that I can't access the imported package.what might be the problem.I'm Using j2sdk1.4.1 Thanx ...
478 byte By
tleis at 2007-9-30 18:36:31
I'm trying to download the Java Advanced Imaging from this site, and it requests me to update my profile in order to log in.After i update my information and click the button UPDATE, the site sends me back asking for logging in again. this is where i'm trying to log ...
809 byte By
szhqvo at 2007-9-30 18:37:23
Hi togetherWe have a problem with format a big value in a currency value. The JAVA methode ' DecimalFormat' can not manage with big values.For example: input is: 2345678901234567890.123457 after methode below we return the formatted value: 2'345'678'901'234'567'700.000000Sample for ...
Hi all,Greetings Can any one help me in understanding "static" modifiers .Like what actually happens when it is applied on variables(Static variables),Classes(static classe) and about static instances of classes like the followingstattic ClassName object name =new ClassName()Note:I know ...
2154 byte By
mintage at 2007-9-30 18:38:15
I get the following error when using my app. on windows 98, On windows xp it's all working fine...On an other maschine with windows 98 there is a conflict withIMAGEHLP.DLL ....can someone help me with this. An unexpected exception has been detected in native code outside the VM.Unexpected ...
Hi all,Greetings,Can any one throw light on Inner classes ,their types with some code samples.It will be better if u recommend me some links even.Thanku
I need help getting my compiler to run. I try to compile a file and the error message I get is: can't read file.I have installed everything correctly.Can anyone offer some help? The version is J2se1.4.2
Hi,I am strugling with this for past two days.. Please help me. I am trying to install java on my linux fedora core 2.. It installationis ok.. when I run simple program i am getting the above error.. Please help me.Exception in thread "main" java.lang.NoClassDefFoundError: ...
Hi all, I wanted to fiddle with the source for the java compiler and in particular wanted to see how it built up it's parse tree from the source java code. Does anyone know where to get that?Thanks