How to hide source code

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.

Any tool to generate toString() method?

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

Installer !

159 byte By Huzefa-Yousuf at 2007-9-30 13:16:59
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 ?

index.CMF

194 byte By vitaliiusa at 2007-9-30 13:17:41
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?

alert message from windoows os

321 byte By PrabhuSai at 2007-9-30 13:21:01
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... ...

Communication with NT Scheduler

283 byte By balachandran_v at 2007-9-30 13:21:33
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

default package compilation

971 byte By siddhart01 at 2007-9-30 13:23:49
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 ...

help a n00b find his way w/J2SE (SDK)1.4.2_05

4512 byte By pacetimp2004 at 2007-9-30 13:25:07
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 ...

Should the java compilation technique change

1240 byte By kar_p2000 at 2007-9-30 13:25:20
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 ...

Drag n Drop Objects

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

Help in Packages & Classes

271 byte By anandunnat at 2007-9-30 13:30:33
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

How to determine if the machine is existent?

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

Continuous File Polling

243 byte By javaforvivek at 2007-9-30 13:33:23
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?

J2SE 1.4.2 SDK compiler download

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

JComboBox that does unique completion/auto-completion?

355 byte By MargaretMahoney at 2007-9-30 13:35:34
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 ...

Why a same program output a different result?

443 byte By JavaEager at 2007-9-30 13:36:06
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 ...

Compiling JDK classes in .NET

586 byte By mnewton76 at 2007-9-30 13:36:13
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 ...

Unicode

69 byte By PrabhuSai at 2007-9-30 13:36:45
What is the size of a Unicode "char" character in Java?

Interfaces Vs Multiple Inheritance

127 byte By java_blues at 2007-9-30 13:38:26
Why multiple inheritance has been removed from java? and why interfaces is being used in its place?Thanks.

Classpath in using Packages

877 byte By PrabhuSai at 2007-9-30 13:38:52
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 ...

Format Time to Time/ Date to Date

600 byte By chrissi711 at 2007-9-30 13:39:31
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++ or ++i ? which is faster?

769 byte By RobinQuincy at 2007-9-30 13:39:40
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 ...

jav.util.regex Jar from 1.4

428 byte By beginner2 at 2007-9-30 13:40:03
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 ...

Compilation Problem

433 byte By PrabhuSai at 2007-9-30 13:40:11
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 ...

Compilation Problem

433 byte By PrabhuSai at 2007-9-30 13:40:12
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 ...

javaw

60 byte By PrabhuSai at 2007-9-30 13:40:13
What is the use of javaw ?How to use it

load: Class Not Found

703 byte By spacerevo at 2007-9-30 13:40:32
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 ...

Warning msg for finally

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

Get current class name

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)

how to replace $ character?

423 byte By linugb118 at 2007-9-30 13:47:43
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 ...

Need help on Task Scheduling using Timer task

1218 byte By kbmkchowdary at 2007-9-30 13:49:33
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 ...

make jvm send signal to unix prog

367 byte By i_is_mike at 2007-9-30 13:50:38
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
한글 테스트 입니다.

Exception

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

write to file on LAN

199 byte By NancyShah at 2007-9-30 13:55:37
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

passing parameters from java to shell script

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.

Bytes and Chars plus encoding

752 byte By Rahul_Srivastava at 2007-9-30 13:58:24
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. ...

ArrayList.get() blows up

821 byte By JavaMaven22 at 2007-9-30 14:00:42
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 ...

Problem in Java IO with File

650 byte By aylwin_wong at 2007-9-30 14:01:24
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 ...

J2SE 1.4.2 SDK problem (maybe)

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

embedded SQL Help

856 byte By kitanakagusuku at 2007-9-30 14:03:26
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 ...

find process

85 byte By 016566192 at 2007-9-30 14:03:54
Hi all, how i can find out if a process is running?Thanks

hardware

127 byte By bea_weblogic_server at 2007-9-30 14:04:40
hi!i want work with modem and control my modem .please how work with modem or other hardwar on java

pelling english words

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!

Windows cannot find 'Path to file'. Make sure you typed the name correctly,

559 byte By spacerevo at 2007-9-30 14:07:35
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 ...

runtime parameter passing

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

How to catch chars entered into editable JCombobox?

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!

My Netbeans IDE does not open

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.

Getting Class instance of a class

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

Suggested improvments to J2EE 1.4 Tutorial Docs / Dukes Bookstore

2836 byte By hugh_barney at 2007-9-30 14:11:40
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 ...