Java Source Licencing Issue

196 byte By s3mt3x at 2007-9-30 18:47:30
Hi Guys,Really sorry to bring this up but if I ported over part of the java api to .Net (using the source code) what would be the legal implications of this?ThanksChris

currency format problem with bigdecimal values

731 byte By szhqvo at 2007-9-30 18:48:25
Hi GuysI have a problem to format bigdecimal values to currency format with the Java methode Decimalformat. input is: 2345678901234567890.123457 after methode below we return the formatted value: 2'345'678'901'234'567'700.000000Is it possible that methode "DecimalFormat" has a problem ...

How can I set those properties to use a proxy

295 byte By empleado_de_altana at 2007-9-30 18:48:30
In this page are listed the properties I have to set up to use a proxy: http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.htmlBut I don't know which class or method should I call to pass the right values:Proxy name: intranetProxy port: 8080Thanks

sdk1.5 b61 is not working with j2me2.1

401 byte By sleepyboy at 2007-9-30 18:48:53
so far sdk v5 rocks.until.........i met my first hurdle, j2me2.1 doesn;t run on 1.5 at all......for some reason it runs perfectly on 1.4.2.I am using w2k sdk 1.5 and j2me 2.1, somehow it always gives me runtime error, when running most of the application in the demo.however those errors are not ...

Runtime.getRuntime().exec() problem

1453 byte By jay786 at 2007-9-30 18:48:56
Hi all,I am facing a unique problem using Runtime. I am using j2sdk1.4.2 , Win XP.In my Java application, using exec(), I am executing an executable file to genrate an output in a text file.With user login who has admin rights.If I execute the executable file from my Java application, the file ...

5.0 or 1.5.0?

223 byte By MartinHilpert at 2007-9-30 18:49:56
Not only on the Sun website but also during installation of the new 5.0 JDK, the terms get mixed up so badly. The paths are "1.5.0" the javadoc API says "5.0", etc. Is there any info what's the final version number?

mathematic functions

152 byte By ibicem at 2007-9-30 18:50:02
hi,I have to derivate a function, is there a specefic function or command that allow me to have the function derivated directly with Java?

JDK 1.5 doc CHM coming!

1828 byte By StevenZou at 2007-9-30 18:50:13
I have set up one plan to give you javadoc_api chm up to the minute !See the URL : http://dev.trueice.net/project/javadoc_chm/English Introduce"chm" type is the best convenient document type for developers to look over technique documents on MSWindows platform. One chm type javadoc api document ...

Lazy activation

89 byte By ganeshramhere at 2007-9-30 18:50:51
Can some one help me in understanding what lazy activation is?Thankx

when will J2SE 1.4.2_06 be released?

124 byte By llschu at 2007-9-30 18:51:28
Bug ID 4917709 states it was fixed in tiger (1.5 or 5.0) and 1.4.2_06. Any news as to when 1.4.2_06 will be released?

Maximum File Size - 2GB?

433 byte By kktingle at 2007-9-30 18:51:59
Does java have a formal maximum file size for java.io.File?Somewhere along the way here where I work we started assuming it was 2GB, is that accurate?Our customer output files are starting to get in the neighborhood of 2GB, and management wants a plan.Do 64-bit JDKs support larger files? Does ...

Creating Packages

659 byte By ansa628 at 2007-9-30 18:52:38
Was wondering if any of you could help us with the creation of packages in java.The steps we are following are as follows:-1) include the statement package projecta;in the class Information2)At the command prompt we gave:javac -d . Information.java3) import projecta.*;to another class ...

raise value1 to power of value2

841 byte By DevOReZ at 2007-9-30 18:55:01
hiI was hoping someone would have a better understanding of this.I have an open source class Real written in java redefining integer implementation of 64-bit precision floating points that perform this task well, but how to do this without the Real library and without losing any data?for ...

Editing a log or exe file in java

657 byte By angeshwar at 2007-9-30 18:55:03
Hi,I have a log file called recording.log. This is a file which has the results of communication betweenserver and number of clients. The extension of the file is .log The content is in machine language(or even I am not sure abt the format). its a log file which has strange, special characters ...

Finding TurtleGraphics

507 byte By ieatllamas at 2007-9-30 18:56:11
I jsut installed the newest version of JCreator and all of the documents and such needed to run it. I have compiled programs already and they work, the only thing that doesn't work is .java files using TurtleGraphics. I haven't tried any other import file commands yet, so I might not have any ...

JDK 1.5 - new keyword enum

529 byte By ptagesen at 2007-9-30 18:56:15
I have problems using Java 1.5. I use an external jar-file that contains a package named 'enum'. Trying to use classes of this package by adding the statementimport com.microsoft.word.enum.*;leads to a compile-error. The problem is, that no sources for this package are available and that ...

Running JAVA programs

244 byte By yebtehaj at 2007-9-30 18:57:02
Hello I've made myself a little mp3 player using java but the problem is what do i put into the run.bat file so that all a person needs to do to run my program is exec the run.bat, ie setting classpaths thanks! or is there a better way?

Banking application in java

876 byte By mahamrityunjay at 2007-9-30 19:01:37
hi friends, i need some suggestions from you learned members. I am not telling you to do it but i want some tips and i will do it myself :-)i am building a Banking System for my final year project..The details are as follow:Java as the programming language.A client server approach.Connected to ...

To take the Locale from a Date

343 byte By pintoscreen at 2007-9-30 19:03:09
Hi all , I am trying to take the Locale from a java.uitl.Date object .From the getTimezoneOffset() method v can take the timezone offset . But How can I convert it to the object Locale .Can I take the default Locale from a Date Object or Calendar Object ? Please help !!! Thanks in advance ...

A threading problem

306 byte By ganeshramhere at 2007-9-30 19:03:39
Hi all,I have a scenerio where one of my threads must keep an eye on a particular directory once in say 10 mins( it must list the files in the directory once in 10 mins ).Listing is not the problem but how to make this thread run infintely with the specified interval of time .Thank u ...

object reference

284 byte By Nil_2004 at 2007-9-30 19:04:09
a function getId() return me an Object type that represent the address or pointer to a String value.How can i retrieve the String value from the Object?String representation of Object is:Location: obj: xml.modify.impl.ClipImpl@996ccaPlease help me!!

JMX : jconsole for Monitoring

224 byte By dhimanonkar at 2007-9-30 19:04:17
Hi ,I need source code for jconsole tool, bundled with J2SE 5.0.Can anyone tell, where could i find the source code or at least java documentation (if any) for the same.Thanx in advance !!

can't find javax.help

93 byte By hend_madhour at 2007-9-30 19:04:38
I have jdk1.3 installedhave I to install a newer version to resolve my problem?

printing from java

415 byte By man_tdh2002 at 2007-9-30 19:04:40
HiI am using a dot matrix printer to print traditional chineese(BIG 5 encoding).when i issue a form feed from my java program it's going to the next page. my requirement is that I have a dotted line after few lines in the page ,what command should i use so that it should start printing from ...

Java SDK for windows 3.1

545 byte By cody_e at 2007-9-30 19:05:31
I have an old 486 in my room. The computer that has the SDK is out where my parents can see me when I'm doing my late night programming. I want to be able to put the java SDK on my Packard Bell 486 running windows 98. I searched and searched and searched some more off of google for a Java SDK ...

Having problems reading from a BufferedReader

653 byte By CaffeinatedCoder at 2007-9-30 19:06:35
I'm writing an FTP client, I'm using InputStreamReader then BufferedReader. I'm having trouble reading all the data. The best way seems to be the following.i = br.read();while(i != -1){TextArea.append(br.readLine());i = br.read();}The problem I have with this method is that I am missing the ...

i'm in class right now and am looking for answers to all java questions

77 byte By UberL33tJarad at 2007-9-30 19:07:10
post all answers to every question i will have in the future here now.

Java and Citrix

1612 byte By scorbett at 2007-9-30 19:07:34
Has anyone successfully deployed a Java 1.3 application on Citrix? We've recently encountered a problem with our application not displaying correctly or hanging altogether when run via Citrix. I searched around a bit and discovered that I'm not the only one to see this kind of thing: ...

Which version of JDK is supported on Win 2003

117 byte By rahul_kohli at 2007-9-30 19:08:18
Hi,What is the latest JDK version that is supported on Windows 2003 server ?Thanks,Rahul

What's in a name?

340 byte By pcoletti at 2007-9-30 19:10:27
aaarhg....look's like the marketing guys at sun sat down with the techies and had themselves what I can only describe as a night-of-the-long-knives on versioning!Is this currently the most important page on sun's entire web-o-sphere ? http://java.sun.com/j2se/j2se-namechange.htmlPaul ...

Problem with FileOutputStream and multithreading

2449 byte By renaud66 at 2007-9-30 19:11:07
Can anyone explain me why the local variable i seems to be shared by the different threads in the following code :import java.io.FileOutputStream;import java.io.IOException;public class DeadLock implements Runnable {public static void main(String[] args) {DeadLock d1 = new ...

jdk1.5's bug

139 byte By ant_zhf at 2007-9-30 19:11:43
It's very slow when eclipse connect CVS using jdk1.5(RC and FCS),It's same when client connect Database.Is this bug?

Tiger

54 byte By ganapaneniprasad at 2007-9-30 19:12:33
what is J2SE Tiger and what is the use of that.

Package level annotation in Tiger

177 byte By tedhill at 2007-9-30 19:12:58
Can anyone post a short and completepackage-info.javafile that shows how to create package level documentation/annotation ? Thank you,Ted Hill

Can I make an entry in widows Registry through an applet?

205 byte By kapilChhabra at 2007-9-30 19:15:15
Hi,Can i make an entry in the windows registry using applets?actually i want to make an entry on a remote machine. is it possible?if yes, then how?thnxkapilChhabra

When was J2SE 1.4.0 released?

293 byte By monika_krug at 2007-9-30 19:15:49
I tried to find out on the website when J2SE 1.4.0 was released, just to get an idea how much time was between 1.4 and 1.5 (which is now called 5.0), but it seems Sun does not put such dates anywhere. Does anyone remember or is there a page that contains this information?Monika.

Class Loaders

359 byte By ganeshramhere at 2007-9-30 19:16:03
Can some one help me with1) What class Loaders are/Primodial class loader?2)Why and when we use them?3)How to define our Own class loaders and how to implement them in coding?I can see some links on it but i don understand them.I think it will be Usefull to post it here.Plss feel free to ...

NameSpace

149 byte By ganeshramhere at 2007-9-30 19:16:14
What is a name space in java?Is it like a boundary r a circle with in which a class name r class is visible?ClarifyThanks

java.lang.Object

268 byte By panneerselvambe at 2007-9-30 19:16:32
The java class automatically extends Object.so, if we extends some other class, our class gets both classes functionality.So, it is multiple inheritence.Can anyone clear how the runtime handles this one?RegardsE Panneer Selvam

while or for loop statement ?

560 byte By jpadron at 2007-9-30 19:17:56
while or for... which loop (control flow) statement is better ? ...and for what ?example:Iterator it=col.iterator();while (it.hasNext()){String value = (String) it.next();}orfor (Iterator it=col.iterator(); it.hasNext();) {String value = (String) it.next();}Exist performance differences ? ...

Java 5 or Java 2 Version 5.0?

125 byte By saeedzadeh at 2007-9-30 19:18:53
HiShould we call Java 1.5.0, "Java 2 Platform, Version 5.0" or Java 5 Platform?Regards,Behrang S.

problem with the scanner class

2969 byte By brad_barger at 2007-9-30 19:19:07
I have been having a problem with the scanner class involving the nextLine() method. Here is some simple code illustrating the problem:/** October 4, 2004* Author: Brad Barger* This program was created to illistrate an issue with the scan.nextLine() method. The scan object is able to* switch to ...

Java SDK 5 - Release Candidate vs. Standard Edition

435 byte By hcmbpatu at 2007-9-30 19:19:33
Hi thereI've just downloaded and installed the J2SE Development Kit 5.0 -Release Candidate (Offline Installation file:jdk-1_5_0-rc-windows-i586.exe). Do I need to upgrade to its StandardEdition (Offline Installation file: jdk-1_5_0-windows-i586.exe)? Thesame question for JRE.Is there any ...

Getting time in microseconds

398 byte By elmajor at 2007-9-30 19:21:46
With the class java.lang.System you can have time in milli seconds via the function getTimeMillis().I should be very helpfull to have another function like this getTimeMicros() that returns time in microseconds.Because in some tests I made I did not have enough precision with time in ...

BlackWindow

199 byte By TheInsider at 2007-9-30 19:21:59
Hi allim new to java & i begin building GUI programsso the question is how can i get rid of the black window appeared when runing the program ?thanks in advance

eclipse with tiger

337 byte By xxx-uffa at 2007-9-30 19:22:55
anybody knows how to make eclipse working with tiger (jdk 5) ?eclipse uses its own compiler (for the nice feature of incremental compilation) and there's no new version with jdk 5 compliance. or at least it seems so, eclipse website doesnt say anything about that.anyone knows about ...

Change the Maniest File R no Dinner

993 byte By ganeshramhere at 2007-9-30 19:23:22
Hay all,Hope u all are fine...But iam not , this trouble is killing me :-( .Actually i wanna run a jar file using java -jar example.jarWell u may say that i should modify the MANIFEST.MF fiel accordingly..CoolI wrote a ex.MF of my own like the one that followsMain-Class: Test (say this is the ...

System.arraycopy() vs System.arraymove()

473 byte By elmajor at 2007-9-30 19:23:47
I assume that there is a function arraycopy() in the class java.lang.System. This is a native and efficient function. I do think that behind this navitve function there is a C memcpy() function call.So with the same idea why there is no System.arraymove() inside the J2SE 5.0 ? And behind this ...

Help with NetBeans3.6

670 byte By gilrodriguez at 2007-9-30 19:24:31
Sorry by put a question about another product here, but I齦l apreciate any contribution. Recently a friend install the NetBeans 3.6, and it works fine for compile code and run it, but when she try to debugg the aplication the NetBeans displays a mesagge window with the statements :Exception ...

Lines reading in file selectively

786 byte By g0pal at 2007-9-30 19:25:34
Is there a way that I can read the lines in a file selectively? Jumping to the line number directly and read from that line onwards without having to read each line one by one. Example, DBConfig.properites is the simple ASCII file with content like ...