473,544 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
0
1,697
thread by: yomgui | last post Jul 17 '05 by: yomgui
in the java code : byte aPictArrayUnpacked = new byte ; in the c++ code : JNIEXPORT void JNICALL Java_tracker_UnpackPict ( JNIEnv * aEnv , jobject aObj , jbyteArray aPictArrayUnpacked ) { jbyte * lBodyUnpacked = aEnv -> GetByteArrayElements (
0
1,754
thread by: yomgui | last post Jul 17 '05 by: yomgui
in the java code : byte aPictArrayUnpacked = new byte ; in the c++ code : JNIEXPORT void JNICALL Java_tracker_UnpackPict ( JNIEnv * aEnv , jobject aObj , jbyteArray aPictArrayUnpacked )
5
6,650
thread by: SomeDude | last post Jul 17 '05 by: SomeDude
Hi, I have a question on file writing. I am not very experienced in Java programming. My hobby right now is to write an applet where 2 persons could play Go together (it is a board game). The offline interface is done but I was wondering how to send information between the two players. Since I am not very experienced in Java and I am just a...
9
13,706
thread by: Buster | last post Jul 17 '05 by: KC Wong
Hi, im about to start learning how to program in JAVA 2 and was wondering what software i should buy to learn the language. I have downloaded the software development kit 1.4 but find the DOS based interface very difficult to use as i am from the GUI age and hate DOS. I have heard that Borland J Builder is the best development enviornment, i...
1
3,124
thread by: Alex | last post Jul 17 '05 by: FISH
Trying to figure out how to use the following program to zip up files in another directory other than current "." Using current works fine, I substitute it with a path "c:\\stuff" I get the following run-time error: Adding: file1.txt java.io.FileNotFoundException: file1.txt (The system cannot find the file specified)
3
2,992
thread by: luke++ | last post Jul 17 '05 by: Patrick Thrapp
i've recently started using Scripting to launch java in windows in a fairly crude way and am wondering if there are any other suggestions on ways to do it without buying anything and not JAR either..... currently i place a shortcut point to a file (say X.wsf) that is in the same directory as my class to launch and use scripting to open a...
1
2,007
thread by: Frank | last post Jul 17 '05 by: Mr. J M Court
Hi all, I'm looking for an on line Java tutorial that covers recent J2EE releases. Any suggestions?
2
3,292
thread by: webstar | last post Jul 17 '05 by: Liz
Hi, I know how to do an action listener with a button but now I want to try something a bit harder. This is what I want to do... When you user presses the JButton it looks at the JComboBox to see if it is selected. If it is, a sound is played. If it isn't, nothing happens. I'm not sure how to do this so if someone could give me a simple...
4
40,158
thread by: Richard C. Eberhardt | last post Jul 17 '05 by: Chris Harbert
Anyone have any experience with inexpensive development environments for Mac OS X? I am a dabbler, not a pro, so I don't need an "Enterprise" version of anything. Thanks, Rich
2
1,718
thread by: Mike Brown | last post Jul 17 '05 by: Pete
Please help, I am learning java and have been stuck with this problem. I have been trying to figure it out on my own, but I am getting nowhere. The problem is this; I need to create a class named shirt with three data fields. I need a constructor that will take arguments for the sleeve and collar fields.I need to be able to use this to...
0
6,983
thread by: Andrew | last post Jul 17 '05 by: Andrew
I need a java english dictionary api, and it needs the following features, in order of importance: To verify given words (duh). To select a random word based on length. To rearrange a collection of letters into meaningful words, eg given not, producing not, ton, and maybe even no, on, and to.
0
2,826
thread by: SunboX | last post Jul 17 '05 by: SunboX
In JavaME gibt es ja keinen Befehl, um eine Textdatei zeilenweise (readLine) einzulesen. Wie kann ich dies anders lösen? Ich habe schon probiert mit readUTF immer 40 char einzulesen und zu gucken, ob ein Zeilenumbruch darin vorkommt, wenn n icht wieder 40 u.s.w. Aber das hat alles nicht so wirklich funktioniert. Gibt es da schon einen...
1
2,517
thread by: CDB | last post Jul 17 '05 by: Ingo Pakleppa
Hello I was running the Image Browser example (from the JAI book by Lawrence Rodrigues) with a very large image, specifically one of the size 12,000 x 6,000 pixels, and the image does not render inside the view port when using the original size display mode, the image appears to be loaded in memory, and the application appears to be...
1
10,382
thread by: Ashish | last post Jul 17 '05 by: Christopher Vagnetoft
I wanted to make a Java application which would dial a telephone number using the modem. When the person on the other end lifts up the telephone (answers the phone), the application should start playing an audio file(eg. .wav file). The approach I took was using the Java Communications API(javax.comm.). As my modem is connected to the...
4
5,343
thread by: BigAl | last post Jul 17 '05 by: Shyamal Prasad
I am using the following code in a servlet to send data back to a J2ME application:
2
2,214
thread by: Liz | last post Jul 17 '05 by: Karthik A.
Hi, Learning Java, want to play with XML. I have a text file that looks like this. # PER 2:04 AM 06/09/2003 # plotfile for a circle of radius 5 # at the origin but rotated 25 degrees about the y axis # y is up, x is to the right, z is away from you 721 4.53154, 0.00000, -2.11309
3
30,660
thread by: Konrad Den Ende | last post Jul 17 '05 by: Silke Stuehler
Well, not exactly, bu tclose to that. I whish to call a method that has, say, String as an argument. Now, i haven't been in touch with Java in a while so i don't remember the syntax. When i go: object.method (new String ); the compiler naggs about missing "]". How do i create an array without explicitly assigning a variable name to it?
0
2,261
thread by: Murat Tasan | last post Jul 17 '05 by: Murat Tasan
I have an application that works perfectly... and at one point loads a class that is in a jar file listed in my $CLASSPATH. If I jar the application and create the appropriate manifest to run it, it starts working fine until it gets to the spot where it loads the class (Class.forName()), and then it gives me a ClassNotFound exception. My...
0
22,101
thread by: the gullers | last post Jul 17 '05 by: the gullers
I am trying to return an array of strings (basicaly the contents of the textfield) to the main class... when i put this piece of code it tells me that i need to declare the array of strings final but if i do then they don't change in the action listener. any suggestions on how to make this work? public String drawLoginPopUp( ) {
1
6,305
thread by: Kim Berry | last post Jul 17 '05 by: Ravishankar M Sastry
This may not be the correct place to post this; however, please bear with me. Platform: Solaris 9 iPlanet Web Server Java Servlets/JSP website I have a servlet that displays the contents of a directory as links available for downloading/viewing. I have also locked this directory down using LDAP through the web administration page of...
1
6,069
thread by: mali djuro | last post Jul 17 '05 by: Patrick Thrapp
Hi all, i got a few questions about transforming into pdf format. i found fop on web and i made all these examples. but for all examples you have to have files. my problem is that i have to generate document object (i made it with jdom). then i transform it in String. now i'd like to transform that String into pdf file. Is it possible? i...
0
1,823
thread by: Marek Mondok | last post Jul 17 '05 by: Marek Mondok
Hello, I need to view EMF (or WMF) file in the applet. Also some '+' and '-' buttons will be provided and actions on theese buttons will magnifying and minifying. Is there some possibility for this or not? Thanks.
1
5,987
thread by: - ions | last post Jul 17 '05 by: FISH
Hello, i am relatively new to programming, Java being the first language im learning. At the moment im having trouble changing the setEnable value of a button, relative to the state of a JTextArea, ie setEnable(false) if the JTextArea is empty, and once somthing IS typed into the TextArea the button is Enabled, i cant find any listeners for...
1
2,027
thread by: N.K. | last post Jul 17 '05 by: N.K.
Hello, I'm trying to find a way to flexibly filter a column in a row of data read from a file. I will have data type of that column, the operation to be performed on it (like >, <, <= etc.) and the value to compare it to stored in a database. If I'm to write it in a procedural language it would be a big case statement like this: case int...
0
1,726
thread by: Patrik | last post Jul 17 '05 by: Patrik
Hi, what effect will it have on my java process if I use a) -J-mx80m option when I compile it. b) run the program with -Xmx256m option. c) if I use both, what happens i.e. of the setting is the max of the heapsize 80 or 256. Thanks, Patrik

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.