36,051 Topics

Member Avatar for
Member Avatar for randomFIRE

I am getting this error Exception in thread "main" java.lang.NoClassDefFoundError: TestApp (wrong name: Test/TestApp) which I have googled and tried suggestions, but it doesn't fix it. I have tried unsetting my CLASSPATH etc. and it doesn't work. The file TestApp.class IS in the directory that I am running the program …

Member Avatar for randomFIRE
0
353
Member Avatar for RabbitruN

Hi, I need some enlightenment with copying arrays in JAVA from some of ya seasoned lots. I have this 2d array , twoDarray[10][6] and another 1d array oneDarray[1,2,3,4,5,6]. I'd like to copy the 1d array into the 4th row of the 2d array.Suggestion please. Thnx in advance.

Member Avatar for RabbitruN
0
322
Member Avatar for awo

Is there any class in java or a package that one can use to manage IP configuration. I mean i was planing to develop a cafe timing application that allows people to bring in there computer system and it will not allow the client system to browse when their time …

Member Avatar for ~s.o.s~
0
364
Member Avatar for thilinam

I would like to self study java programming. What would I do to successful my learnig give me an advise

Member Avatar for jbennet
0
149
Member Avatar for raija09

public class solve{ public static void main (String []args){ A cs = new A(); int first=34; int second=4; System.out.println("Sum:" + cs.add(first,second)); System.out.println("Difference:" + cs.subtract(first,second)); } } i got this code, unfortunately it refuses to run.. please help.. Something is wrong with "A", dnt know what it is...:(

Member Avatar for stephen84s
0
156
Member Avatar for sivak

i have one text box date of birth and submit button ..if i click that submit button the calender should open ...if we selevt any one of the date on that calender the date should display in dataof birth text box.. can anyone tell me the javascript code for this …

Member Avatar for sivak
0
80
Member Avatar for k2k

Member is class consisted of member informaiton such as firstname, lastname, phone etc. would anyone please point out what this function gave me NullPointerException runtime error? I think I initialized everything. thanks [code] public static void read(Member box[], int count) { Scanner reader = null; try { reader = new …

Member Avatar for ~s.o.s~
0
71
Member Avatar for er.prajna

In one page i insert data in textbox amd on clicking the submit button it will open a new page with the previous data(will retrived form database) that has been inserted using swing as desktop application in netbeans IDE6.0.we are able to insert data but unable to fetch it from …

Member Avatar for sillyboy
0
106
Member Avatar for marcmm

ok, I have a form that submits data to a database. data that is colected from things like dropdown boxes, textboxes, checkboxes etc. I want to put some conditions that prevent the user from submitting something that is missing important data. I found a little tutorial that dose that, but …

Member Avatar for manish.s
0
184
Member Avatar for deven1974

Implement the insert, remove, and search methods of the BinarySearchTree class. Included are the Main, Tree, and TreeException classes. Do not make changes to those classes. Your tree should work with them as shown. All operations should be implemented recursively. Additional methods may be needed. [CODE] /* * Tree.java * …

Member Avatar for quuba
0
217
Member Avatar for Boyet728

I am very new to programming and I have an assignment, but I am not asking for the solution. I just want to understand what is being asked. Our instructor presented two codes using a break and continue statement. He stated that both methods are bad programming practices. Which I …

Member Avatar for ~s.o.s~
0
132
Member Avatar for kaushalya_uom

I'm going to make a small spreadsheet using java. I thought to use jTable as the spreadsheet. How can I display the output when a function like 'sum' included in a cell?

Member Avatar for Ezzaral
0
46
Member Avatar for TheWhite

This is actually part of a much bigger program, but I cut it down to the problematic area to make it easier to read. [code=java] import javax.swing.JButton; public class test{ static GameButton[] grid; static class GameButton extends JButton{ int value = 0; } public static void main(String[] args){ grid = …

Member Avatar for BestJewSinceJC
0
98
Member Avatar for javafrustrated

The program is intended to read a file with a few lines of strings to determine whether or not they are palindromes. I'm getting an error while compiling - tagged where the error shows up. I'm not sure whether or not it is going to read the lines correctly from …

Member Avatar for BestJewSinceJC
0
160
Member Avatar for americaneagl

For this one I have to do the while and do-while plus the for loop. I have this bank/atm style program so the goal is to put the teller into a loop so that the user can deposit, withdraw, check the balance as long as they need to, and entering …

Member Avatar for BestJewSinceJC
0
105
Member Avatar for roadToNowhere

Hey guys, would like to thank everyne for help on previous post. the following code is meant to populate a hashmap and hash set respectivly, but when i run my programme its giving me a null pointer in my user interface, could anyone help guide me? [code] package concordanceReader; import …

Member Avatar for Antenka
0
101
Member Avatar for bachma7

hi every body! is there anyone know how to play an incompleted music file when it 's be downloading by a java program? please help me. thanks a lot.

0
42
Member Avatar for Ninad16
Member Avatar for ~s.o.s~
0
199
Member Avatar for drjay1627

I small maze game and I got a key Listener. I got it to work. The problem I have is that i have a text box in the gui and Key Listener is added on to the that. but I want to set it so that when the window is …

Member Avatar for Ezzaral
0
132
Member Avatar for drjay1627

I made a maze game. When you click the button, a navigator is created. But before you create a navigator, if you try moving the navigator, there is a null pointer exception. since the navigator can be moved by pressing keys on the keyboard, I want an error message to …

Member Avatar for drjay1627
0
86
Member Avatar for rofio

[CODE]package corpus; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.HashMap; import java.util.Map; import java.util.HashSet; import java.util.Set; import java.util.Collection; import java.util.TreeSet; public class FileReader { private static final String[] FILES ={"a_christmas_carol_capter1.txt", "a_christmas_carol_chapter4.txt", "emma_chapter1.txt", "emma_chapter2.txt", "pride_and_prejudice_chapter3.txt",}; private Map<String, Set<String>> corpusCV; public FileReader(String textFile) throws FileNotFoundException { Set<String> texts = new HashSet<String>(); corpusCV …

Member Avatar for rofio
0
156
Member Avatar for dreamer14
Member Avatar for dreamer14
0
102
Member Avatar for alan72

Does anyone have any code or links that shows how to interact with Web Pages with VB6? I'm trying to find button/image files (.gif, .jpeg) within the HTML and have VB send a command to press that button with code. I read a lot about Web Browser Control, but can't …

0
58
Member Avatar for dnmoore

have to creat a geosolid class that has 3 sub class i choose sphere cylinder and cone, i got the first two to work but my cone class works except when it calculates the volume it keep getting 0 no matter what number is use for the hieght and radius …

Member Avatar for quuba
0
186
Member Avatar for andrepezzo

Hi..my aim is to serialize/deserialize my "SoapPair" class , that contains Axis MessageContext obj (SoapPair receives this from its constructor), not serializable object(when trying to normally serialize , it returns "axis MessageContext not serializable").. How do I serialize/deser the SoapPair class? Do I have to use SerializationContext/Deser context? How? Thanks …

Member Avatar for ~s.o.s~
0
167
Member Avatar for lepetitevoddy

I have this wierd kink in this program, it keeps telling me that there is a "missing return statement for public static question. i'm kind of new to JAVA and i've tried everything! please can someone help! import javax.swing.JOptionPane; public class arithmetic { public static void main(String[] args) { JOptionPane.showMessageDialog(null, …

Member Avatar for ~s.o.s~
0
268
Member Avatar for roadToNowhere

right, so ive got this problem, basically, ive got a bunch of text files and i want to use the scanner to go through every single file, and seperate every single word from all the text files, i tried everythnig, and ive scoured this forum my code looks like this: …

Member Avatar for roadToNowhere
0
110
Member Avatar for javafrustrated

I have a program that allows a user to input an integer value into an applet (the number entered determines the size of a list). From the value entered the program determines how many comparisons are required to sort the list using the size inputted. The applet is working but …

Member Avatar for javafrustrated
0
352
Member Avatar for begueradj

Hello ; I would love to know if JavaMail API is enabled to secure its messages and if it implements any seuciry policy such as encryption or anything else Thank you very much for your answer from : <snip email>

Member Avatar for stultuske
0
44
Member Avatar for newbie086161

Im creating a program that will show a family tree. I did my flowchart, but im stuck on the type of outline i should try to make the pseudocode. Any suggestions?

Member Avatar for stultuske
0
38
Member Avatar for oldSoftDev

Hi guys, I am a student who is just going to start Java I use to work on python and I heard that java is some what similar to python. couple of days a go I posted a code that was not compiling because i did not the environment variable …

Member Avatar for javaAddict
0
84
Member Avatar for realahmed8

I need little help in adding Sin & Cos functions to my calculater , and also in Layout (need textfield to be on the top), so please help me if you can.. that's my code: package javaapplication3; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.*; //import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Member Avatar for javaAddict
0
278
Member Avatar for av11453

Hi , I am a beginner in java and programming. Please help me out to set two attributes for a string field. Here segFolderName is a string field. I need to set two attributed name and description to segName and segDesc respectively. segFolderName.name = segName; segFolderName.description = segDesc; Thanks in …

Member Avatar for neilcoffey
0
61
Member Avatar for jrobw

hi, i alreday posted under [URL="http://forums.sun.com/thread.jspa?threadID=5355743&tstart=30"]http://forums.sun.com/thread.jspa?threadID=5355743&tstart=30[/URL] yesterday, but no one helped me. it's an assignment for university, i have only few hours left to complete it, any hints would really be great!! here my post: I have to write a frame with two componenents of squared size (i chose 450 …

Member Avatar for neilcoffey
0
193
Member Avatar for dnmoore

Attached your will find my completed files, I only have one question about the parent class which is called GoeSolids it has to be a generic geometric solid and i dont think I did that quite right. will someone be able to help me fix it? import java.util.Scanner; import java.text.DecimalFormat; …

Member Avatar for dnmoore
0
119
Member Avatar for amgupt01

Hi guys, I am a beginner to Java (I'm only a freshman in high school) and I'm working on a project which involves the need for me to be able to store 11 different strings as a text file. I have it storing the strings with multiple lines so I …

Member Avatar for gprest
0
176
Member Avatar for Venks

Hai Friends, Iam using gprs connection for my project, i want to send message from pc server to my mobile client by UDP connection, how can i do? how can i get ip for mobile gprs connection? please help me for this problem

Member Avatar for AlbertPi
0
107
Member Avatar for dominic23jones

I am creating a jar file which when run displays an image the image path is hardcoded ie the whole path is written. So whenever the jar file is run on a different computer to my own the image is not shown. So my question is how is it possible …

Member Avatar for PoovenM
0
158
Member Avatar for srs_grp

i want to write a code for big endian and little endian represntation of message.The msg is trading message.How can i do it with core java? also how can i check data type validity of input given by user and data type is also provided by user. Both Data type …

Member Avatar for AlbertPi
0
230
Member Avatar for soniagupta98

interface BinarySearchTree { public void insert(Integer data); public int size(); public int height(); public boolean contains(Integer target); } and I have to implement BST with all these functions. I have implemented the first insert and size like this way - class Node { Node left, right, next; Integer data; Node …

Member Avatar for PhiberOptik
-2
102
Member Avatar for ajithraj

I dont know how to solve this..Can anyone help me.. The project is an Intranet aplication... how can a client upload a file/image.... Uploaded file/image should be to the server... Thanks

Member Avatar for peter_budo
0
363
Member Avatar for ajithraj

haii I have a requirement in which i want to read a file from another machine in the network. I want to know how to set the URL Thanks in advance

Member Avatar for masijade
0
309
Member Avatar for abcd_nima

hai there!am a beginner in java.am familiar with c,c++ and object oriented programming principles.someone please suggest me a book or a student friendly site(online materials preffered) that i can refer to ,and improve my java skills.as a beginner i would also like to know the basic differences b/n c++ that …

Member Avatar for peter_budo
0
96
Member Avatar for Beef_Log_FTL

I am going to be taking some Java classes in this upcoming semester at college. Since this is going to be my first Java language class I'm not sure what is really needed to create Java programs on my laptop. The professor has given us the link to the class …

Member Avatar for ~s.o.s~
0
117
Member Avatar for dimplomat15

please can someone help me with this HW the instructions are : # The computer should ask the player for the largest possible value which could be generated (N) # The maximum number of guesses should be set equal to 1/2 N. (Don't prompt the user). # When the game …

Member Avatar for dimplomat15
0
145
Member Avatar for php2sheik

hai, i integrate my php pages with java pages in website. i want to get data from that java pages..but not using url's...how to get data from java pages without using url's..

Member Avatar for buddylee17
0
67
Member Avatar for MxDev

hi guys, iam workin on an application that calculate the income for certain diving centers, i using the SQLite database, i developed a database with 3 table the first one for user input, the second is to hold daily income, and the third for weekly income. i've a problem when …

0
96
Member Avatar for theraven82

Hi, I wrote two functions, FWT2_PO and IWT2_PO, both having a 'transform' method. The functions work really well, but a strange thing happens. Namely, the following code gives different output than the code below. [code=java] denoised = FWT2_PO.transform(array, 4, QMF, 2); //recovered=IWT2_PO.transform(denoised, 4, QMF); for (int i=0;i<denoised.length;i++){ for (int j=0;j<denoised.length;j++){ …

Member Avatar for stephen84s
0
128
Member Avatar for shubhang

Hi! I wanted to know in simple language what is an API (application program interface). I have made an address book program so can I call it an API. Help will be highly appreciated.

Member Avatar for verruckt24
0
147
Member Avatar for Kentoro

It is my final assinment to create a program similar to yahtzee. I need it to roll 6 dice visually. Allow the user to keep the dice they want to save. And after three rolls select a place to save their number value. At end of program, it should tally …

Member Avatar for verruckt24
0
148

The End.