186 byte By
gcmf at 2007-9-30 13:15:57
I was asked to develop a java program(like API) for other using. However, is there any way like in C++ DLL in Java that I can hide my source code? Thanks in advance.
253 byte By
Jobinesh at 2007-9-30 13:16:11
Hi,Is there any tool available to generate toString() method by concatenating all the attributes for that class.It's useful in DTO's for debugging pupose.pls help methnxJobineshjobinesh@yahoo.com
hi i have made an exe of my project now i want to zip these files in an installer ... is there ne suitable installer for java programmes ?
Hi. this question might not relate to java. i noticed that some websites run on files with .cmf extention. Does anyone knows what kind of language it is and what server it runs on?
Java installed on Windows 2000 systemWhen java <filename> is type, an alert message opens up from windows and the command propmpt gets closed.can anyone tell what would be the reason for this and how to rectify it ....Aleready 3 to 4 times java has been removed and reinstalled... ...
Hi All,Is it possible to interact with the NT Scheduler from a Java Application? If possible, How do i communicate from a Java Application to an NT Scheduler to get the status of some Jobs, and also to start and stop some jobs? Thnx, balachandran_v
Hi, I'm having a slight problem and wanted to confirm if this is a known issue or not. I have some old code which has a lot of classes in the default package (empty package). If I try to compile this with SUN JDK 1.4.2_05 it gives me an error saying either "the class could not be found" for ...
first off im a total n00b to all of this. i have one goal to accomplish...i have the source code (given to me freely to alter and for my uses as i see fit & was told by the author what to change even). the code is from www.worldofjon.com . this is a source code for a complied class file to ...
I've got a class Sup, which is likeclass Sup{void x()throws Exception{System.out.println("fm sup");}}a class Sub which extends Sup likeclass Sub extends Sup{Sup obj = null;public Sub(Sup obj){this.obj = obj;}void x(){System.out.println("fm sub");try{this.obj.x();}catch(Exception ex){}}}We can ...
472 byte By
ck4ever at 2007-9-30 13:29:34
Hi Everyone I've done some research on Drag n Drop objects using Java 2 SDK. However, I found only few that explain the basic. How can I program an application that able to Drag n Drop object from one JComponent to another JComponent. The component that I want to perform the action on is ...
I want to know how to view the contents of a java package and also the contents of java classes. I also want to know the use of various tools available in the jdk/bin folder (like javap, javah etc).Thanks to all who will consider my post.mohan
429 byte By
alongnet at 2007-9-30 13:31:59
hi,I am developping a server-side application, in which have a function to configure the address of the server side, after user input the server address string, system will check if the specified address have a corresponding machine in domain.I use InetAddress to process it, But, whatever I ...
Hi,I want to write a java program, which keeps track on a folder and polls the file as soon as it arrives in that folder.. and then write the data from that file to a database. What can be the best design for this?
1104 byte By
missouri at 2007-9-30 13:35:27
I recently purchased a CBT class to use on my home computer in order to eventually take an exam and get certified by Sun. I downloaded the J2SE 1.4.2 SDK Windows Offline Installation (there's also a Windows Installation that's much larger, but when I emailed Sun to find out the difference, no ...
Does anyone know of a JComboBox (or other) control that helps then end user get ot a specific item in a combo box, as they type? For instance There will be hundred of items in a combobox and I want the user to type 'a' and reduce the list to all items starting with 'a', and so on.Has anyone ...
class aa { static void cg(String c,int d){ String s1=c; Integer i=new Integer(d); String s2; s2=i.toString(); if(s1==s2)System.out.println(true); else System.out.println(false);} }class A { public static void main(String [ ] args){aa.cg("1",1); aa.cg("11",11);} }//the result is "true" and ...
Hi,I want to compile the java.util.* classes of the JDK into a Visual J#.NET library of classes.This library will contain loads of my own original classes but I need the JDK versions ofthe java.util.* classes because the Microsoft implementation of those classes is buggyto the point of being ...
What is the size of a Unicode "char" character in Java?
Why multiple inheritance has been removed from java? and why interfaces is being used in its place?Thanks.
In d:\ drive two folders are created one inside the otherEx:d:\Exam1\Exam2trial.java file is stored inside d:\Exam1\Exam2The code is package Exam1.Exam2; public class trial {public void show(){} } In C:\ there is a .java File called regular.javaimport Exam1.Exam2.*;public class regular extends ...
Hi,need some help. I try to format a Time and a Date value, but I don't want to convert them to a String.I know this:SimpleDateFormat formatDate = new SimpleDateFormat( "dd/MM/yyyy" );SimpleDateFormat formatTime = new SimpleDateFormat( "HH:mm:ss" );String strDate = formatDate.format( new ...
I guess this might have already been covered many many times. if yes, sorry.Is there any difference in these two operators(speedwise)? I read any article on line says ++i is faster because i++ always return a copy of i, also I read another long article declared that the assembly code are the ...
Hi,I am using java 1.3 but wish to use some of capabilities of Java 1.4.More specifically I wish to use java.util.regex regular expressions.Is there any jar that I can simple download and but complient with my JDK 1.3 enviroment. As the project I am working on cannot go to 1.4 yet.I know this ...
I have a Directory Structured:/Big/small/mini/tiny/nanoNANO Directory contains practice.java Mini DIRECTORY contains trial.java I want to compile both the files at a time....In such a way that if i mention the Root Directory BIG, then all the .java files in the subdirectories alos should get ...
I have a Directory Structured:/Big/small/mini/tiny/nanoNANO Directory contains practice.java Mini DIRECTORY contains trial.java I want to compile both the files at a time....In such a way that if i mention the Root Directory BIG, then all the .java files in the subdirectories alos should get ...
What is the use of javaw ?How to use it
Hi. I seem to have a problem with my website after inserting an Applet into it. I have tried methods like:Downgrade the JRE to 1.1 as i read on the threads that IE 5 supports JRE 1.1 and not 1.2 ( Compiled in JDK1.4)Created my Own keystore and digital Certificate.Added the Object Comment and ...
1642 byte By
chouanna at 2007-9-30 13:41:17
I got a warning message for a finally statement, attached at the end.Could not figure out why.The code is simple and followed.Please help.Thanks!!!=======================================import java.util.*;import java.io.*;public class TestFinally {public TestFinally() ...
294 byte By
mimmell at 2007-9-30 13:41:41
I have a multithreaded app that I am trying to create a log for and the messages are a bit hard to follow. So I was wondering if there is a way to get a string with the fully qualified class name to let me know where the log messages are coming from? (e.g. com.centrus.underworld)
recently I use the java.util.regex to replace a piece of string in one text? but the string contains the character of $, whatever i do,it is wrong! can you help me?the code:Pattern p = Pattern.compile("a\$b");Matcher m = p.matcher(aaa$b );bufferstring = m.replaceAll("ok"); I want to ...
Hi all, Does any body know how to schedule a task at any given time using Timertask. Say i want to execute a task at 4:00 AM. but the timer task is executing the task at 4:00 AM and as well as at 4:00 PM also. But i don't want to execute the task at 4:00 PM. So how to specify the start time ...
HiMy question is about signalling and javaI've read that its possible for java to send a signal to a (non-java) unix program, so long as they are both owned by the same user. However I'm having trouble finding any examples of this codewise.Could someone point me to some documentation that ...
81 byte By
catbus at 2007-9-30 13:53:29
한글 테스트 입니다.
304 byte By
bubly at 2007-9-30 13:55:23
Hi all,I have compiled my class Test1.java and set environment variables.I can see Test1.class in my dir and when I try to run it it says:Exception in thread "main" java.lang.NoClassDefFoundError: Test1Please let me know how I should proceed.Thanks ...
I am creating a file in a java app (running on Unix) and I want to copy this file on LAN. How should I do this ? ORCan I write directly to a file on LAN from this java app
260 byte By
shyam29 at 2007-9-30 13:58:02
I have created a shell script in unix, from that i am calling a java program. I need to send a parameter (string) back to the shell script. if anybody now how can i do this please tell me. I know we have system.exit(n) which will only return int.
Hi,I have a requirement to read bytes and at times characters from a given input stream. The characters in the input stream may be encoded in a particular encoding. I have a definition file, for the input stream I am supposed to read, which tells when and how much bytes/chars is to be read. ...
Maybe I'm missing something very obvious, but I don't understand this result import java.util.*;public class HGTest { ArrayList tableData = null; public HGTest() {tableData = new ArrayList(100); } public void doTest(int rowIndex) {if (tableData.get(rowIndex) == null){System.out.println("We ...
I am currently using J2SDK 1.4.1 in my Windows platform. I want to read a file, so that every piece of information in the file can be stored in my variable. For Example : I have 3 variable in type integer : a, b, and cthen I have file called "MyText.txt" which contain : 3 12 225I want to store ...
676 byte By
missouri at 2007-9-30 14:02:16
I posted a question last week about the J2SE 1.4.2 SDK compiler that I was having trouble with. I was able to get past it and can compile now, though there seems to be another trouble I'm having. Having purchased a CBT Java 2 class from Learnkey and going through the sample programs they ...
I am trying to write a java app that acts as an interface to a database. I am having a hell of a time trying to get a little function to work that has embedded SQL. For some reason, that isn't obvious to me, I cannot get the SQL code right so the jkd 1.4 likes it. It keeps catching my ...
Hi all, how i can find out if a process is running?Thanks
hi!i want work with modem and control my modem .please how work with modem or other hardwar on java
157 byte By
gtr2 at 2007-9-30 14:07:20
Hi,I want to use speaker to spell each word of a sentence which is typed by user. Is it possible to do it in Java? Thanks!
Hi, I have a problem with my java after updating from jdk 1.4.0 to jdk 1.4.2.05 and installing netbean 3.6 everytime i try to open the file by double clicking it , it will show the following error message. Windows cannot find 'c:/calander.java Make sure you typed the name correctly, and then ...
266 byte By
bubly at 2007-9-30 14:08:08
Hi,I have a very basic question in Java.In C language, I used to use scanf("..") for reading the parameters entered by the std i/p-keyboard.Now I want to do the samething in Java. Is there any way I can do that?Thanks
99 byte By
mmmmmp at 2007-9-30 14:08:10
I am trying to detect when a user types chars into an editable combo box?Help!
266 byte By
joker785 at 2007-9-30 14:09:43
when i click on the desktop icon to open up Netbeans IDE 3.6 a java window pops up that says dummy at the top of it. The program worked just the other day, but for some reason it no longer works. If you know how to fix this problem please help. Thanks.
384 byte By
Shaiju.P at 2007-9-30 14:11:39
Dear Friends,I need to get Class instance of a class in my project. Inorder to use the reflection API 's the package name of the class is needed , but it may not be available Only available thing is the name of the class file and the location where that file is existing . Please suggest some ...
Please pass these comments onto the tech author responsible for theJ2EE 1.4 Tutoral.I've been working through the J2EE 1.4 Tutorial and ended up spending thebest part of 2 days trying to get Duke's Bookstore to work. From what I can see on the forum.java.sun.com this is not an uncommon ...