32,199 Topics
| |
Hey everyone, Can we create a java file that runs without the JVM? I have googled the topic and found out about excelsior Jet that is meant to convert the java code into native one so that it won't require a JVM. Is it true and should I download the … | |
I know that this is probably the stupidest question that I have ever asked but here goes....... I am trying to create a new application in netbeans..... and having no luck at all. First I create a new project called Interactive Campaign Manager by choosing java category and then Java … | |
I need some help to make AES work with UDP. I keep getting this error. Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676) at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313) at javax.crypto.Cipher.doFinal(Cipher.java:2087) at AES.decrypt(AES.java:31) at EchoServer.main(EchoServer.java:26) It seems that upon receiving the … | |
Write a general purpose currency convertor program. The program is started by giving it three program arguments: the name of the currency the user holds and wishes to sell, the name of the currency the user wishes to buy, and the conversion rate from the first currency to the other. … | |
Hi, I want to build an application in java, without using ipAddress i should be able to access the Remote System. Please do the needful. | |
How do I set the security permissions to no restrictions with a .policy file when I start the application. I can trying to run it with HTML. Thank you! | |
Hello, I'm writing a plugin for a software in eclipse. I'm using vtd-xml.jar for importing an xml file. I have added to the build path by rigt clicking on the paroject and selecting the opetion add to build path. While I do the operations from eclipse it is working fine … | |
import java.io.*; import java.net.*; import java.util.*; public class UselessHTTPServer04 { public static void main(String args[]) throws Exception { int port = Integer.parseInt(args[0]); ServerSocket serverSock=new ServerSocket(port); while(true) { Socket conn = serverSock.accept(); Scanner scanin = new Scanner(conn.getInputStream()); String line=null; int nlines=0; while (true) { line = scanin.nextLine(); if(line.length()==0) break; nlines = … | |
Hi dear all i am new in java i don't know how identify the background and foreground color of image if any have idea please help thanks in advance | |
| Hello Guys , I am having an error message with javafx scene builder integration on netbeans kindly help me ! ![e0bfe397024238042e0c0a4b0776f3f0](/attachments/large/4/e0bfe397024238042e0c0a4b0776f3f0.PNG "e0bfe397024238042e0c0a4b0776f3f0") Thanks |
I am a beginner to hibernate.... I have a two tables like, t_2013 id name 1 donald t_2014 id name 2 charles This is my jpa, @Entity @Table(name="t_2013") public class Test implements Serializable { @Id @GeneratedValue @Column(name="id") private int id; @Column(name="name") private String name; Here i create one jpa with … | |
hi , we have a requirement to get grand parent,parent and child nodes display in treemodel.At the moment we have the parent ,child display of Tree Model .Could you please advise what need to be done to get this hierarchy -Grand Parent - Parent -children Thanks in advance for your … | |
Hi, Is it possible to create a Java compiler? Could you make a Notepad-like application, save the code as a .java file, compile it into a .class file, and run it? Basically, I want to combine Notepad and Command Prompt. I just need help on the compiling part (and listing … | |
| Hi Guys , I know this looks like quite funny question during the holiday season , but i developed small netbeans application called helloworld , which is kind of pressing button and displaying helloworld , i pressbuild the application and press run , but my application is not runnig even … |
var pattern =/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/; | |
| Hello Guys , I am new to NetBeans , any idea what is the meaning of these icons ? Thanks |
| Hello Guys , When I checkout code from svn i get this error message any idea to fix this issue ? I use netbeans 7.3.1 , plugin subversion. ![38e5e181fb4f014e1a9cac948390b20a](/attachments/small/4/38e5e181fb4f014e1a9cac948390b20a.PNG "align-left") |
I have just started to learn java..!! I'm trying to implement some C++ programs in java.. Some of them are working perfectely. But this is the only program which is not working.. It's showing 2 errors at br.readLine().. I don't know what to do.. Kindly please have a look on … | |
i am try to compare the Stored-password and Salted Password for the Experiment. Now i have a Stored Password and Salted-password., Stored-password having 72-byte and Salted-password having 18-bytes only, but i facing problem on comparison, how can i compare the both of them.. Here my Code : RandomAccessFile raf = … | |
Hello all! Again thanks for viewing my thread. The past couple of days I have been struggling with trying to add JPanels to a JScrollPane. Basically I have data to display that comes in from another application in the form of a JPanel with regular updates. I am trying to … | |
code in java for send a free msg from internet to mobile phone like way2sms or 160by2 sites................. what are the requirments for that???? pls reply as fast as possible........... | |
I downloaded eclipse to my windows 8 computer along with the jdk and when I launch eclipse it tells me that it cannot not find the jre or jdk and that it is not in my current PATH. I have tried setting the path to the jdk folder but it … | |
Hello guys i want to show a data in my combobox when i click on an item ion my jtable i tried this but it doesn't work. i would apprecite it if any one can help thanx String add5 = rs.getString("Id_branch"); branch_combo.setSelectedItem(add5); String add6 = rs.getString("User_Role"); UserRole_combo.setSelectedItem(add6); | |
I am trying to write a program to calculate mean & standard deviation. I sort of figured out how to find mean (it is not correct yet, so i am going to need help on this part as well) but how do you do standard deviation? import java.util.Scanner; public class … | |
This is a code that I wrote and for some odd reason it doesn't count the number of inputted integers properly. import java.util.Scanner; public class IntegerCount { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter an integer, the input ends if it is 0: "); int … | |
**HEre is my checkout.java** index LCval = new index(); final String LCnum = LCval.getVal(); JButton btnNewButton_1 = new JButton("Finish"); btnNewButton_1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { try{ int bal = 0; Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); String connectionURL = "jdbc:sqlserver://ROHAN\\SQLEXPRESS;Database=sys;user=rohan;password=rurouni;"; Connection con = DriverManager.getConnection(connectionURL); PreparedStatement pst =null; ResultSet rs = null; //Statement st=con.createStatement(); … | |
Is this correct? I wrote a decimal format and it doesn't work. how do i correct this: return sum / myFormatter.format(Math.sqrt(x.length - 1)); I will submit the full code if needed. | |
I learn Java programming language. I have a .exe file that was produced with lunch4j. I can easily run that application in my computer but I can't run it in other computer. I got error ""Window can't access the specified device, path or file, you have the may not have … | |
My requirements are as follows: 1. use main method 2. use the following array- `int[] grades = new int[] {` `82, 70, 99, 90, 92, 75, 87, 85, 91, 100, 91, 87 ` `};` 3. Write code to step through the array of grades and calculate the average grade. Modify … | |
Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for Java! It uses a words file, on the bottom of this post you will see a small example of a few words. The source … |
The End.