32,204 Topics
| |
Hello I am running into an error after creating the jar file. I get a message stating that the main class to my program could not be found when in fact there is a main class. If someone could give me a hand and lead me in the right direction … | |
Hey guys, i've been making a little super mario clone in Java but I need help, you see, if you download it and play it, you will notice it is quite stutter-y, and that really shouldn't be the case since it's such a small program. game link : [Click Here](http://www.filefactory.com/file/4mx7jddejnrr/n/super_mario_clone.zip) … | |
Hi I have a program for DUP client and server in java. when i run the UDPServer and type netstat in the cmd it dosen't show any open port for UDP. why is this? is it because it is a connectionless protocol? appreciate any commnts | |
Hello, I am working on a project and am in need of search function. How my system works: User enters details Stored into a text file writes a blank line at the end of the record when reading in the file, a new blank line = new record So for … | |
hi for my programming class we have to write an average calculator program in any langauge we want. I did mine in Java and im fairly new to programming. the problem with my code is how can I improve it to make sure user's incorrect input ruins program. for example … | |
Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 How can I make the PHP page understand true … | |
Hello I cant figure out how to recive a boolean from a method in another class. public boolean arYatzy() { boolean yatzy = true; for (int i = 0; i < tarn.length - 1; i++) { yatzy = yatzy && (tarn[i] == tarn[i + 1]); } if (yatzy) { return … | |
Hi, I am trying to develop something but I am stuck. it's not about the code but about the implementation. The application captures screenshots and then inserts all the images in a RTF document. Now, the user is also supposed to write a one line description for each image inserted. … | |
I am new to java programming. I am trying to create a GUI which includes JLabels, JPanels, JButton, text fields and labels. I am not using layout manager. Is there a particular structure in laying out the code that I should follow.? Thanks . | |
| |
Hello! I am working on a server program that has a connection to a MySQL database. In one of my sql:s i need to use [URL="http://dev.mysql.com/doc/refman/5.0/en/user-variables.html"]User-Defined Variables[/URL] but i can't get it to work. The sql looks something like this: [ICODE]"SET @rank=0; SELECT id FROM (SELECT @rank:=@rank+1 AS rank ..."[/ICODE] … | |
** Having trouble running this code as the compiler keeps having issues with the method 'public void mannipulate()', I'm new to java so forgive my ignorance, but I've been trying to rearrange everything in every which way to please this thing and its just not turning out right. I'm sure … | |
How exactly would I go about doing the following in C#? public class Test { public static void main(String[] args) { Test(new TestInterface() { @Override public void SomeMethod() { //create instance of the interface within parameters of a method. } }); } public static void Test(TestInterface _interface) { } } … | |
Lets say we have an 1d array called array. Now I know array.length gives me how many primitive types or objects are in a 1d array but what does it do for a 2d array with rows with different rows? {1, 2, 3, 4} array.length would be 4 but if … | |
Hello, Iv been working on a project in java and i want to implement an export to HTML 5 feature. I have looked around and not seen many useful discussions on how to implement this feature. A number of software products i looked into such as scirra construct and adobe … | |
hi friends, suggest me a good book and link to get a good practice in java | |
| So it's my first time trying to do a loop and I've come across something that I'm not experienced enough to explain... My program compiles fine, but after I enter my third number (variable "a", see code below) it just skips a line and does nothing. It just lets me … |
Hi, I need to build a rating system for a travel community . It will contain user preferences such as say average time of the aircraft,aircraft age,legroom,number of stops, route quality. These might be modelled as checkboxes on my web page. The user can then select which all criterias he … | |
HI, I have a spec for a golf tournament report. in it it says that to generate a report for less than 200 players the processing time of the report should be within 15 minutes. how can i test this in junt the uril for the SRS is below (section … | |
Hi Does nayone know how to test a test suite in cmd line? (in java) thanks | |
I believe the title of my thread explains what I am trying to do... I have a .class file, I need to look at the code has generated the .class. is this possible, and if yes, can you tell me how? | |
Hey How do I correctly validate that a email is in the correct format? I tried using the Apache Commons Validator library but, since Im using a web service, it seems not to want to fix it up and use it. I comply the code, make the aar, put it … | |
I have an array of objects but when i traverse throught it to display its contents, it gives an error, but only if it is not full. Any suggestions? Below is the code snippet: for (int k = 0; k < array.length; k++) { msg += String.format(array[k].toString()); } JOptionPane.showMessageDialog(null, msg); | |
I am trying to find the point of intersection of a circle and a line through its center. I want to put an arrow on the point actually, to make a directed graph. After some calculations, I found that the math that would go in is, ![formula](/attachments/large/1/formula.JPG "formula") The figure … | |
I am a recent immigrant from c++ to Java. I have this problem: I have an array of objects (not yet initialized using the new operator), that I need to pass to a member function of another class for storage. In c++ I would have made a pointer to the … | |
Hey, i was wondering whether anyone ever came accross developing something that would allow to have a software installed on the vm. What i mean by that is that i would want to install ie (internet explorer)/or any other windows application whithin my java app. so it could be opened … | |
Hi all, I have a java program when I compile it, it compiles fine, without any error or warning. However, when I run it, I get the following warnings. [code] bash-2.03$ javac CountSessions.java bash-2.03$ java CountSessions Writing data to file... Data written to file !! log4j:WARN No such property [maxFileSize] … | |
How can i call ? i am so much confused now ? can anybody please help me ? | |
I am going to build a desktop software with client-server facility.What are the things i need to do for client-server? 1.Should i make 2 different version of the software?One with database for the server and one for client without database. 2.Or should i have some options in one software inside … | |
hello all how can i clear the DOS screen through java program i hava search so many web site but i can't found the proper ans. thanx in advance [:)] |
The End.