35,618 Topics

Member Avatar for
Member Avatar for akasekaihime

I am working on my java code using combo box.............I compiled it and it says process complete....BUT.....I cannot view it in applet viewer.....whenever I click the play button, it displays "java.lang.NoSuchMethoderror:main" "Exception in thread "main"............. what do these mean???? How can I make it be displayed in the applet viewer?? …

Member Avatar for peter_budo
0
187
Member Avatar for ksnmurthy
Member Avatar for satish2

i came to know tomcat is primarily used as JSP/SERVLET container where u can run java codes on that web server .. my doubt is why cant apache http server itself serve as JSP/servlet container with some modules attached ??? and one more thing --> can apache http server used …

-1
68
Member Avatar for vishal1949

I was writing a program that involves the console inputting integers and strings. For my project i prompt the user to enter the number of strings he would like. Then i prompt the user to enter the strings so i could order them alphabetically. I am supposed to use any …

Member Avatar for Muralidharan.E
1
591
Member Avatar for ramjeev
Member Avatar for carloskire

Hello. This java app I'm developing on NetBeans 7. When i run the project, line 4 below: [code=java]FileReader input = new FileReader("projects");[/code] is not executed and apparently stops execution. Only when debuggin the file or running step by step are the next lines executed. No execution past line 4, except …

Member Avatar for carloskire
0
272
Member Avatar for rotten69

Hello, Are we allowed to assign different values to just one variable? For example, gender = [Female, female, fEmale] so if one a user enters any of the specified ones then he/she will be taken to the next step/level. I'm just doing a tute at the moment and coming up …

Member Avatar for NormR1
0
193
Member Avatar for Majestics

i have added a picture panel in jscroll pane [code] scrollpane.add(pic1); [/code] now i want that on run time when user click on another pic panel it will be shown at pic1 scroll pane, so i simply use this code [code] scrollpane.add(pic2); [/code] but it doesnt work , so i …

Member Avatar for SamuelD
0
311
Member Avatar for jpleas

As we can tell from the last coding experince I am clearly not the best at this coding thing. I know now what I need help with and how to ask so this project is "Writing a Java class definition and instantiating the class in a program" Write the definition …

Member Avatar for NormR1
0
138
Member Avatar for Kronk Vaesir

[B]Can anyone help me. I have been bangin my head on this one for two days. variable number may not have been initialized. code to enter single digit number and return largest of ten. code is as follows.[/B] [code] // Java packages import javax.swing.JOptionPane; public class Counter { // main …

Member Avatar for Ezzaral
0
3K
Member Avatar for madhub2v

How Comparable is marker interface when it is having int compareTo(Object o) method... we can say it as just interface...??

Member Avatar for JamesCherrill
0
68
Member Avatar for abhinavM

I have to read an Excel file and transfer the contents to the database using Java swing.The excel file contains questions for the surveys with options for answers or responses.The database should have a table say Question with columns "Question No., Question, Option 1, Option 2 and so on".I have …

Member Avatar for stultuske
0
1K
Member Avatar for ganeshtr24
Member Avatar for Muralidharan.E
0
67
Member Avatar for asif49

[CODE] if (fileScan.hasNext(posPattern)) { posCB = fileScan.nextInt() + 1; for (int i = posCB; i > 0; i--) { String writeByte = fileScan.next(); BufferedWriter out = new BufferedWriter(new FileWriter("E:\\dataReadable.txt")); out.write(writeByte); out.close(); }//for } [/CODE] Using a for loop, how would I write to the file without clearing the contents, so …

Member Avatar for asif49
0
108
Member Avatar for raghujosh

I am outputting the contents of a product from a product object(containing catalog no, product name, vendor, price, quantity(a textbox) and a checkbox(to select the product)) as a tabular display. When a user checks a checkbox(indicating the product checked), I get the values into a servlet. However, when I have …

Member Avatar for raghujosh
0
580
Member Avatar for Muralidharan.E

[CODE]class Test{ static String str[]; public static void main(String args[]){ System.out.println("args "+args); System.out.println("str "+str); } }[/CODE] [U]Output[/U] args [Ljava.lang.String;@3e25a5 str null My doubt is ... How some object address is printing for args when it has not initialise. In case it has got initilised ,without array size specifiction how its …

Member Avatar for Zetlin
0
190
Member Avatar for jex310

Can you fix the numberformatexception [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Main extends JFrame implements ActionListener { int inputtedxend,inputtedyend,inputtedSAngle,inputtedarcAngle; int inputtedxpoint,inputtedypoint,inputtedx,inputtedy,inputtedwidth,inputtedheight; JLabel title=new JLabel("Choose a Grapic Method: "); String select []={"","DrawLine","DrawOval","DrawRect","DrawArc","DrawString","DrawRoundRect","fillRect","fillOval", "fillArc"}; JLabel xend=new JLabel("Enter X end point:"); JTextField inputxend=new JTextField("",5); JLabel yend=new JLabel("Enter Y end point:"); JTextField …

Member Avatar for Muralidharan.E
0
129
Member Avatar for 47pirates
Member Avatar for Pravinrasal

Process p = Runtime.getRuntime().exec("C:\\tc\\bin\\" + prog_name , null); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getInputStream())); System.out.println("Here is the standard op :\n"); s1=stdError.readLine(); i have this code can anyone tell me how to run c program using java thanks !

Member Avatar for NormR1
0
202
Member Avatar for Pravinrasal
Member Avatar for rotten69

Hey everyone, Just curious why my little program doesn't go through the if-statement I specified in it. [code] public static void main (String args[]){ Scanner sc = new Scanner(System.in); System.out.println("Enter a value for girls:"); int GIRLS = sc.nextInt(); System.out.println("Enter a value for boys:"); int BOYS = sc.nextInt(); if (BOYS == …

Member Avatar for NormR1
0
192
Member Avatar for himmat.m4

Hi, I am now stuck on problem is that in our application used thread and that start in jsp page. so here problem is once thread started and after completion of run method it goes to dead. we can not restart dead thread. so whenever goes that jsp page trying …

Member Avatar for ck-81
0
321
Member Avatar for Stefan_Lam88

Hi guys, any1 here know about servlet mapping? I m having problem at here...it keeps saying error 404 not found... [CODE] <servlet-name>myProject</servlet-name> <servlet-class>myProject.MyProjectServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>myProject</servlet-name> <url-pattern>/myProject</url-pattern> </servlet-mapping>[/CODE]

0
65
Member Avatar for Pravinrasal

how todesign automatic grading system online using java i want to create one web application which creates online grading system for the students. which displays their grades,marks and ranking ...

Member Avatar for Majestics
0
157
Member Avatar for andersonelnino

discuss how java programming languagues differs from procedurals programming such as pascal and c. 1.classes 2.objects 3.attributes 4.methods 5.pirvate,protected,public 6.encapsulation 7.interface 8.inheritance 9.polymorphism

Member Avatar for JeffGrigg
-1
309
Member Avatar for iamcreasy

This simple code is showing the following error. [CODE]import java.io.IOException; import java.net.*; public class Server { public static void main(String[] args) throws IOException { DatagramSocket ds = new DatagramSocket(999, InetAddress.getByName("192.168.1.102")); ds.send(new DatagramPacket(new byte[10], 10)); } }[/CODE] Error: [CODE]Exception in thread "main" java.net.BindException: Cannot assign requested address: Cannot bind at java.net.PlainDatagramSocketImpl.bind0(Native …

Member Avatar for iamcreasy
0
358
Member Avatar for raghujosh

What would be a regex pattern for the following ' and ® in Java. I have tried the following but have not been successful 1.&#[0-1][0-1][0-1] 2.&#\d\d

Member Avatar for Ezzaral
0
65
Member Avatar for anand01

Hi all , pls suggest me some good tutorials to learn complete j2ee .. Thanks in advance

Member Avatar for Ezzaral
0
84
Member Avatar for andersonelnino

DEFINITION OF DATA REQUIREMENTS Produce an itemised consigment note for each customer including -dimension,weight and price per parcel. -total weight and price consigment -number of parcels RESIDENT DATA -up to 2kg-£7.50 -up to 4kg-£8.00 -up to 10kg-£8.55 -up to 12kg-£9.10 -up to 14kg-£9.70 -up to 16kg-£10.35 -for each extra 2kg,up …

Member Avatar for sirlink99
0
120
Member Avatar for shan123456

Can anyone please help me! Very stuck on an assignment i need to code a java applet so that it counts the lengths of words for example i am a man would produce the output 2 - one letter words 1 - two letter word and 1 - three letter …

Member Avatar for sirlink99
0
184

The End.