32,204 Topics

Member Avatar for
Member Avatar for shubhang

I am a beginner at Java. I have been given an assignment to make a simple address book(without applets) using Java. It should have the following functions:- 1) search-by name,city. 2)add-name,telephone number,city,address. 3)modify. 4)delete. I am still working on the program.But the problem comes when the screen(black one) becomes too …

Member Avatar for blackeyedanel
0
226
Member Avatar for davecoventry

Hi, I'm trying to run a Java App from PHP. [B]system('java -jar /home/dave/web/drupal/java/dist/emp.jar');[/B] fails. nothing prints out, it just returns FALSE. However, this works: [B]system('java -jar');[/B] Prints out the help info normally associated with incorrect parameters passed to Java. This also works: [B]system("ls -l /home/dave/web/drupal/java/dist/emp.jar");[/B] Prints out a listing of …

0
90
Member Avatar for aladar04
Member Avatar for aladar04
0
529
Member Avatar for RoyaLPearL

Hi everyone, Hi everyone. I'm happy to be here today. actually I need help from u . I'm doing a JAVA program and there is this error that I really tried to fix but couldn't. so can u help me please. the program I'm writing is to accept data from …

Member Avatar for mellowmike
0
157
Member Avatar for 4me@u

hi every body, i was working on my Client-server file hosting system and at this level my program can upload file from client to server but it is also expected to download the files previously uploaded. Now i can browse the filenames from the server with the following code, [code] …

Member Avatar for 4me@u
0
100
Member Avatar for SgtMe

Hi all. I'm interested in Java ME, so I downloaded Netbeans with the JDK. Here is the story: 1.) I installed the wrong version of Java JDK 2.) I removed the JDK 3.) Accidentally removed JRE as well :( 4.) JDK data still on system 7.) Downloaded and 'installed' Netbeans …

0
50
Member Avatar for happyns

Hi one and all, I am using C#.net language in asp.net framework using visual studio 2008. I have one checkbox as input control and two textboxes named textbox1 and textbox2 as asp controls. First the client needs to type something in textbox1 and after that the client needs to check …

Member Avatar for happyns
0
98
Member Avatar for kilermage

Im trying to make the run.bat file read the .class files from the folder classes/src. But before I didn't package my .java files and the created .class files were found in /classes. But now that I packaged my .java files, the newly created .class files are being read from inside …

Member Avatar for kilermage
0
70
Member Avatar for shayacov

Hi, I'm building a snakes&ladders game in java. so far i have the model ready, i'd like to make the UI in swing. my problem is to paint the dynamic board using swing, i need to paint a snake/ladder from one square to another, the problem is that so far …

Member Avatar for cale.macdonald
0
90
Member Avatar for Clawsy

Hello, I desperately need a good and fast image encoder and/or compressor for files like jpeg or png. I need this for [B]internet image transfer[/B]. I have to transfer an images from server to client very fast - every second, even milisecond. I'm interested in an encorder that can [I]lower …

0
129
Member Avatar for jakethesnake86

I'm completely new to java and am trying to get some experience with programming java applets that can be opened from a browser. I was able to successfully open a simple "hello world" applet from a browser using the below javascript: [CODE]<script src="http://www.java.com/js/deployJava.js"></script> <script> var attributes = { code:'HelloWorld.class'} ; …

Member Avatar for jakethesnake86
0
697
Member Avatar for countercoder

I get the error 'orphaned case'. So here's the problem: [IMG]http://img385.imageshack.us/img385/6424/errorqg4.png[/img] Here's my case 218 and the case before it, can you help? [code] case 192: // Use an item on an object junk = inStream.readSignedWordBigEndianA(); int UsedOnObjectID = inStream.readUnsignedWordBigEndian(); int UsedOnY = inStream.readSignedWordBigEndianA(); int ItemSlot = (inStream.readSignedWordBigEndianA() - 128); …

Member Avatar for lieni
0
2K
Member Avatar for emmas4impact

my task is to create a gui for a list of cars, bus,bicycle etc. and the program should be able to add and remove to the car in store. so i wrote this code below using netbeans IDE. [CODE]package vehicleregister; import java.awt.*; import java.awt.event.*; public class VehicleRegister extends Frame implements …

Member Avatar for emmas4impact
0
229
Member Avatar for aladar04

[CODE]/*manimbo_mp5*/ import java.io.*; public class manimbo_mp5{ public static void main (String[]args) throws IOException{ BufferedReader br=new BufferedReader (new InputStreamReader (System.in)); Integer x=8,y=1,heads=0,tails=0; String ht=""; while (x>0){ System.out.print ("Enter toss #" + y + " result: "); ht=br.readLine(); if (ht=="h"){ heads++; } else if (ht=="t"){ tails++; } x--; y++; System.out.println ("Tails: " …

Member Avatar for aladar04
0
102
Member Avatar for Clawsy

Hello, I have to take a snapshot of my screen and send the image to a client using Datagrams. I think my problem is at the client part. The image is null, and I don't know why. Here is the server part. I tried to send 534 byte packets (bigger …

Member Avatar for Clawsy
0
3K
Member Avatar for Justin12345

This is due in 2 days its supposed to be simple but i just cant get it. Write a program that will print out statistics for a user-specified number of coin tosses. First the user should be asked about the total number of coin tosses possible. For this project, the …

Member Avatar for aladar04
0
501
Member Avatar for Clawsy

I'm am trying to send over socket a very big array - length about 1300000 .... and I use ObjectInputStream and ObjectOutputStream. The problem is when I read the input stream... I get this exception: java.io.StreamCorruptedException: invalid type code: FF at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1356) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at objectThread.run(objectThread.java:27) [CODE] //ois is the …

Member Avatar for Clawsy
0
1K
Member Avatar for beforetheyknew

Hi guys, I'm still quite new to programming and have an exam soon where we have to hand-write programs(no IDE). Never done this before, just you guys all give fantastic guidance, i wanted to see what you all thought. Any general advice would be appreciated! Theres some small things im …

Member Avatar for Phaelax
0
115
Member Avatar for dileep_u

Hi, when i click the save button in it should redirect to other page and should show sucess message on that page like(the record was saved sucessfuly)

Member Avatar for peter_budo
0
36
Member Avatar for scarface9477

I am starting out in programming and have little knowledge of Java. I use linux and after a while got sick of using gedit and javac to learn. So I now use eclipse. I am trying to get input from a text file and when I write the code I …

Member Avatar for scarface9477
0
2K
Member Avatar for k2k

hi, please assume it is already connected to the access database( it is connected) since i could get all the data out and put them onto a JTable. What is wrong now ... is that i am trying to insert new data to the access db and i got [code] …

Member Avatar for javaAddict
0
126
Member Avatar for redZERO

Hi guys I am trying to build a program which scans data from a text file, but I keep getting an error when trying to compile it. The code [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Scanner; import java.io.*; class anything extends JFrame { public anything() { File stuff …

Member Avatar for javalearn
0
581
Member Avatar for sravan953

A java program which accepts a string from a user, and gives various options to change it case. Options include: [LIST=1] [*]UPPER CASE [*]lower case [*]Sentence case [*]Title Case [*]tOGGLE cASE [/LIST]

Member Avatar for smartbloggerz
0
249
Member Avatar for jorgelex008

Hi all, I'm new to Java. *question:* Can this be done in Java as a desktop application? * * * * * * Among other projects I've been thinking is a Software Robot... kind of a super macro that goes across multiple programs. For example (it could be anything really): …

Member Avatar for JamesCherrill
0
224
Member Avatar for P00dle

Ok, so I have this XML file that I'm reading: [CODE]<?xml version="1.0"?> <APOLLERSETTINGS> <SYSTEM> <VERSION>3.1</VERSION> <SMTPSRV>blue</SMTPSRV> <SMTPPORT>29</SMTPPORT> <SMTPUSR>Me</SMTPUSR> <SMTPPSW>Password</SMTPPSW> <EMAILFROM>lodewyk.duminy@gmail.com</EMAILFROM> <EMAILTO>lodewyk.duminy@gmail.com</EMAILTO> <ALTEMAILTO>lodewyk.duminy@gmail.com</ALTEMAILTO> </SYSTEM> <JOB> <JOBNAME>The Name</JOBNAME> <INPUTFOLDER>C:\</INPUTFOLDER> <FILEMASK>*.txt</FILEMASK> <PROCESSORDER></PROCESSORDER> <RETAINFOLDER>C:\</RETAINFOLDER> <OVERRIDEFOLDER>C:\</OVERRIDEFOLDER> <ERRORFOLDER>C:\</ERRORFOLDER> <POLLINTERVAL>6000</POLLINTERVAL> <JOBBATCHFILEPATH>C:\</JOBBATCHFILEPATH> <JOBBATCHPARAMS>three</JOBBATCHPARAMS> <JOBLOGPATH>C:\</JOBLOGPATH> <JOBEMAILTO>lodewyk.duminy@gmail.com</JOBEMAILTO> <JOBALTEMAILTO>lodewyk.duminy@gmail.com</JOBALTEMAILTO> </JOB> </APOLLERSETTINGS> [/CODE] This is the code that is reading the file: …

Member Avatar for P00dle
0
113
Member Avatar for psaneem

Hie ....i am doing my final year project im trying to deploy mobile agents in network monitoring any pointers on where i could start??

Member Avatar for peter_budo
0
27
Member Avatar for jorgelex008

Hi all, I'm new to Java (after years of Visual Basic and VBA). So right now I'm going through a very steep learning curve. I'm trying to figure out (while I bang my head on the keyboard) how to do the following in SWING: - Show mouse coordinates (x, y) …

Member Avatar for MxDev
0
302
Member Avatar for winn_man

Hey guys, I have been trying to write a basic program that will send and receive MIDI. I have successfully managed to send a MIDI message, but am unable to come up with the code that will receive a MIDI signal from an external source and simply display the information …

Member Avatar for winn_man
0
95
Member Avatar for synplace

Hello All, I have developed a small rmi application. It works fine in my local area network. Now, I want to deploy it in a server and access it through internet. How can I do this? In which Server (Web Server or Application Server) I have to deploy it? And …

Member Avatar for darsiguruprasad
0
86
Member Avatar for darsiguruprasad

i want devlop a search engine project in my webportal using java with mysql database.my question is enter two fields in one textbox .after we press search button it will take values from database and display. exampl)doctorname,area

0
37

The End.