35,617 Topics

Member Avatar for
Member Avatar for rajasekhar1242

Hi , I am trying to get HibernateCfgXMLFile and HibernatehbmXMLFiles in new file option. So,that i can get document types automatically.. How can i do this... i added hibernate jar files also... now i am checking the hibernate option in open perspective option in the menu of eclipse... But there …

Member Avatar for dononelson
0
73
Member Avatar for Yuri_0129

Hello everyone! My name is Uriel, and I'm from the Philippines. I'm currently doing our machine problem in Java. I'm using the BoxLayout for this GUI. [ATTACH]20069[/ATTACH] I can't seem to find the correct set of codes to make these buttons function. What codes do I use for these buttons …

Member Avatar for Yuri_0129
0
128
Member Avatar for Caseous

i want to repeatedly replace e by o from the words Hello World to be Holle Werld [code]import java.awt.*; import java.applet.*; import java.lang.String; import javax.swing.JOptionPane; public class StringExercise1 { public static void main(String[] args) { String textString; textString = JOptionPane.showInputDialog("Enter a string:"); replaceAll(textString); System.out.println(); System.exit( 0 ); } public static …

Member Avatar for monarchmk
0
109
Member Avatar for R'hab

hi:::: i hope very bady good? how threads are implemented in an operating system of Windows xp?how threads are implemented in the operating system?how user level threads map to kernel threads and threading models used by that operating system ?

Member Avatar for DarkLightning7
0
89
Member Avatar for DarkLightning7

I have an installer application I am building in javafx but I can't figure out how to get the operating system it is running on so I can place files in the right locations for each system and so I can customize the interface for each. If anyone has any …

Member Avatar for DarkLightning7
0
582
Member Avatar for lisaroy1

I have developed a program applet and frame in it the program is perfect but i dont how to know run it in command prompt

Member Avatar for sourabh17
0
109
Member Avatar for singuland

Can someone please help me find a method to this? The following recursive method addeven (...) is supposed to add the even indexed values of an array, i.e., a[0] + a[2] + a[4] + … There are bugs in the method. Trace the method using test data, find the bugs, …

Member Avatar for singuland
0
82
Member Avatar for WolfShield

Okay, So this code I have is giving me an error: non-static variable this cannot be referenced from a static context. Here is the code: [code=java] package macey; /** * @author WolfShield */ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class DemoConv implements ActionListener { private JLabel answerL; public static …

Member Avatar for WolfShield
0
157
Member Avatar for DeAndrew

Grating everyone I've to write a program that know how two animals related to gather, the program should first read the number of cases from file , and then the size of two matrices. i did that. and then should compare the first matrix with size 4 with the second …

Member Avatar for DeAndrew
0
169
Member Avatar for ajijacobm

hi, im doing a project on jsp..which is a file uploading program i have a file chooser and i want the file choosed by the user to be stored on my server. how should i do that.. please help me my code is given below--addphoto.jsp [CODE=JSP] <html> <head> <meta http-equiv="Content-Type" …

Member Avatar for peter_budo
0
117
Member Avatar for koduruabhinav

Hi, I was a beginner in java.I was trying to connect to database(oracle) with the deatails user:scott pass:tiger host string: PC0128166 with code as [CODE] Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); connection =DriverManager.getConnection("jdbc:odbc:abhi","scott","tiger");[/CODE] But i was getting the error as [CODE] Exception is ;java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12560: TNS:protocol adapter error[/CODE] problem is the same …

Member Avatar for jwenting
0
132
Member Avatar for loidz123

im a newbie to java programming and i wanna know how to create a java program that would let a user enter a 6 character ID number(a combination of 3letters and 3numbers)

Member Avatar for loidz123
0
77
Member Avatar for MWE_QUE

I got this code sample from the internet, [url]http://richardbowles.tripod.com/java/menu.htm[/url] was able to change the deprecated code to BufferedReader to read in the file, but don't know what's wrong with the errors I'm getting. This is sample code I'm trying to get to work so I can step through with a …

Member Avatar for Skyelher
0
342
Member Avatar for mayankdvd1

When I selecting gridview row i am getting the error in the following line onclick="javascript:__doPostBack('grdOrderDetail','Select$0')"> The error message is Microsoft JScript runtime error: Object expected Please help me out Thanks in advance

0
79
Member Avatar for Prateek Salian

Hi All, I am creating an application in JAVA EE for my company where people can upload their .xls files into the fielsystem of the server. Then an administrator can integrate all the .xls files uploaded by the people into a [B]single .xls file.[/B]I am done with the uploading part …

Member Avatar for Prateek Salian
-2
218
Member Avatar for rohitrmehta

Hello, I have a project on hand. I have to build a portal. I am basically a UI person which development skills. Which technology is better for portal development? PHP vs java vs .net vs Ruby? Also if there are any developers with experience in portal development, Give me a …

Member Avatar for Rashakil Fol
0
142
Member Avatar for amatech

Hi, Can someone tell me If my code is right? It compiles ok, but I am not sure if the implementation is right. I am trying to write a singly circular linked list class with insert, getfirst, getNext, delete and empty methods. Can someone help me with this? Thank you …

Member Avatar for amatech
0
140
Member Avatar for Neversleepin

Hello, i try the tutorial Get Attachment File Name from Java2s.com. What i'm doing is to read email from the Outlook Web Access Light. If i put the url address of the Outlook Web Access Light, i have the error: [CODE]Exception in thread "main" javax.mail.NoSuchProviderException: No provider for http at …

Member Avatar for Mr Chips
0
181
Member Avatar for jdm

I'm working on a java program in netbeans and I have it working except to run it I have to right click the main file and tell it to run instead of just clicking the run button. Any help would be appreciated. Sincerely yours; jdm [CODE] /* * To change …

Member Avatar for jdm
0
175
Member Avatar for xanawa
Member Avatar for mKorbel
0
66
Member Avatar for jfountai

Hi all. Learning Java - sorry for my stupidity if you see any. Here is the code: [CODE] private static void readFile() throws Exception { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, DAYS); String fOther = "filename.csv"; String fOtherImp = "filename_imp.csv"; LineNumberReader lineCounter = new LineNumberReader( new InputStreamReader(new FileInputStream(fOther))); String nextLine = …

Member Avatar for jon.kiparsky
0
645
Member Avatar for Cool_Tori

HI! I recently joined this forum as I am about to start a degree in Computer Science and although I have an A level in Mathematics and an interest for computers, I have not studied computer science and wish to read up about it before my course begins. I'm hoping …

Member Avatar for jon.kiparsky
0
134
Member Avatar for coervivekmca

I m having a typically prob...i know how to upload image/file using <input type="file"> to this i set enctye="mulitpart" while using this when i need to add some text field to take data and image form user i can not retrieve text value on next page to save it in …

Member Avatar for javaAddict
0
67
Member Avatar for dreamer14

Any one got hints how to do this? I got 3 drop down list initally all 3 contains 4 option A,B,C,D. After selecting A from 1stdrop down list,the 2nd and 3rd drop down list are left with B,C,D. After selecting C form 2nd drop down list,the 3rd drop down list …

Member Avatar for javaAddict
0
231
Member Avatar for Sybre

I'm new to jsp and am writing some pages to be used internally (ie on our intranet) only. The problem is, I need to know the username of whoever uses the page without them having to go through a login page/popup. I don't require passwords, just the username. Does anyone …

Member Avatar for masijade
0
83
Member Avatar for drogba123

Hi, how to get the name of directory and subdirectory in a folder? example abc1/banana/(text files)? i have some codes buts its not given me the name [CODE] File dir = new File("abc1"); File[] folder = dir.listFiles(); [/CODE] i want to get the subfolder in abc1 called "banana". thanks for …

Member Avatar for drogba123
0
267
Member Avatar for jet101

guys, good day... I know that this is just easy but i've been tweening my work the whole afternoon but no luck. my problem is using setAttribute for java's client-side programming. I just want to create session for my username to be able to use while being logged in. this …

Member Avatar for jet101
0
135
Member Avatar for Caseous

I want to display a message input by a user on an applet /** * @(#)Hello.java * * Hello Applet application * * @author * @version 1.00 2011/3/17 */ import java.awt.*; import java.applet.*; import java.io.Console.*; import java.io.*; public class Hello extends Applet { public void init() { } public void …

Member Avatar for ywang
0
111
Member Avatar for sasi_88

[CODE] <html> <head> <script> function goSubmit() { document.frm.submit(); } </script> </head> <body> <form action ="view1.jsp" method="post" name="frm"> <table> <tr> <td> <input type="radio" name="rg" value="faculty" onClick="goSubmit()"/> </td> <td> <input type="radio" name="rg" value="date" onClick="goSubmit()"/> </td> <td> <input type="radio" name="rg" value="content" onClick="goSubmit()"> </td> </tr> </table> </form> </body> </html> <html> <head> <script> function goSubmit() …

Member Avatar for sasi_88
0
108
Member Avatar for krip_101

I want to display the quote (character) into a text in netbeans Swing form. But it shows only last character. Any help would be appreciated. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: String t = encodeText.getText(); String text = t.toUpperCase(); int[]textnum = new int[text.length()]; for(int …

Member Avatar for krip_101
0
254

The End.