473,554 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
0
2,140
thread by: davidson1 | last post Nov 7 '11 by: davidson1
Hi, I have ran the below code in java, but it is throwing an NoSuchField error. Can you please help me to correct this code? I have included all the required Jar files and pointed in Environment variable.I am using Java JDK 1.6.It successfully compiles but throws error while running. I am following the instructions to run this Java Code as...
0
1,383
thread by: Akino877 | last post Nov 9 '11 by: Akino877
Hello, I have a Java formatted string which looks like the following : PrintWriter out = renderResponse.getWriter(); ... String format = "|%1$-30s|%2$-10s|%3$-10s|%4$-10s|%5$-10s"; out.printf(format, field1, field2, field3, field4, field5); And I can write this formatted string to the sdtout or a file; it works fine. But when I try to...
0
1,448
thread by: nishadmry | last post Nov 10 '11 by: nishadmry
Hi, I am getting the following Exception when I am loading DB2 Driver in my java program. Exception in thread "main" java.lang.UnsatisfiedLinkError: SQLAllocEnv at COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv(Native Method) at COM.ibm.db2.jdbc.app.DB2Driver.<init>(DB2Driver.java:249) at...
0
2,373
thread by: sky9890 | last post Nov 10 '11 by: sky9890
hi.. frnds.... My OS is Windows XP and I am using java 1.7 development environment. I have sql server 2000 installed on pc. I have downloaded sqljdbc 4.0 from microsoft website. I am trying to connect java program with sql server 2000 through sqljdbc driver. But I have never done it yet before. I am not able to connect because there is...
0
1,641
thread by: trev | last post Nov 11 '11 by: trev
Last week in searching for a live coverage event and i saw one site using a tricks code to ther site, ill just wondering how they do it, an x button or close button on thier adsense code look at this image http://1.bp.blogspot.com/-RH5Qab27Rew/TryX2ZYY1aI/AAAAAAAACzc/VSg7PBMVBW0/s1600/ads.jpg anyone knows bout this code? can you share it me?
0
1,558
thread by: sandeshdate | last post Nov 19 '11 by: sandeshdate
when my java projects run on local machine, store procedure and functions are running well. when i upload this java projects war files on server, store procedures and functions are not calling. please tell me solutions its argent.
0
1,076
thread by: renji mathew | last post Nov 19 '11 by: renji mathew
how can i create malayalam font without using image cut method??
0
2,089
thread by: supriyakhankar | last post Nov 21 '11 by: supriyakhankar
Hello friends, I want to implement the ECDH key exchange algorithm. I have the code but i am getting the error as class or interface expected. please help me. which packages i need to add and how to add new package. code is: package sun.security.ssl; package sun.security.ssl.JsseJce;
0
1,778
thread by: HardToHandle | last post Nov 22 '11 by: HardToHandle
Hello, I am a novice programmer and I was given the following task: write a Payroll class that uses the following arrays as fields : employeeId (holds 7 integers that are initialized, I placed them in my code below), hours and payRate (both are doubles and hold 7 numbers). I need a default constructor, getEmployeeId accessor, setHours and...
0
1,082
thread by: Sangeetha R | last post Nov 29 '11 by: Sangeetha R
I have a super class with one common method for its subclasses and this method will internally a called an abstract method. Code is working fine, but help me whether this design is ok. All the subclasses doing the same operation but those are servicing for different clients. So i cannot put all other methods as common in the super class. Is this...
0
1,352
thread by: hridyakrishna | last post Dec 5 '11 by: hridyakrishna
We have a program for displaying an image wherein image uri is got from xml structure.As output we got only blank frame. Program is : public class DOM extends Frame { ImageCanvas c; BufferedImage image=null;
0
1,224
thread by: hridyakrishna | last post Dec 5 '11 by: hridyakrishna
Program: public void imagdisp(String m) { try { image = ImageIO.read(this.getClass().getResource(m)); } catch(Exception e) { System.out.println(e);
0
1,526
thread by: odofin Timothy | last post Dec 5 '11 by: odofin Timothy
please can anyone help me I? here is my code to load image from mysql and display it in jsp <%@ page import="java.sql.*"%> <%@ page import="java.io.*"%> <% Blob image = null; Connection con = null;
0
1,831
thread by: Tou Vue | last post Dec 6 '11 by: Tou Vue
I am writing a simple database class and it works fine the first time but then i get this error message the times after. If i delete the text file that it is writing to then it is fine. Please help I am lost at this point. import java.io.*; import java.util.Scanner; public class Database { private String filename; private...
0
1,666
thread by: techbytes | last post Dec 6 '11 by: techbytes
hi, I have written a xml string for my project.I have to convert the xml string to java objects. help me. XML string is as follows. <?xml version="1.0" encoding="UTF-8" ?> - <PageLayout> <pagename>de</pagename>
0
1,654
thread by: Lahari Das | last post Dec 8 '11 by: Lahari Das
I get this error when trying to run the code given below. org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'xs:schema'. the code is : import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import javax.xml.validation.Validator; import...
0
1,457
thread by: Kurt G | last post Dec 13 '11 by: Kurt G
Hi, I’m hopping someone can point me in the right direction or provide advice for the following: I’m currently developing the following website via third-party ColdFusion catalog system which I have limited control over: http://ideas4promo.com/item_choose.cfm?listing=QuickSearch&strip=0&ClearListOrder=true I’d like to show relevant “category”...
0
1,759
thread by: frig0018 | last post Dec 13 '11 by: frig0018
I have an assignment to create a static class for 2 matrices (2d arrays) that I need to multiply, add, subtract, and find the inverse. However, I am having trouble creating a method to initialize the values in the arrays. So far, I have: private int a; public Matrix(int r, int c) { a = new int ; } and I also know I can...
0
1,442
momotaro
thread by: momotaro | last post Dec 14 '11 by: momotaro
Hi, Am willing to start a Java project that will be basically a speech recognition software so if someone can give me some useful links so I don't waste time googling? Best regards.
0
1,374
thread by: Dawn Povey | last post Dec 15 '11 by: Dawn Povey
Hi, i recently installed the new java plug in through google chrome and it is not working at all. i checked to see if the plug in is enabled and it is...through the browser and through java itself. i even tried using it through internet explorer and it doesnt work there either. im at a loss..anyone help?
0
1,363
thread by: siasproject | last post Dec 17 '11 by: siasproject
Hi, I'm trying to do something like this: http://vlakc.com/facebook-vlakc/index.html My problem is that I am totally lost in it javascript, I need a little guidance. Thank you very much for your help.
0
1,229
thread by: kuldeeprsks | last post Dec 19 '11 by: kuldeeprsks
I had written a C Struct code in java for Authenticate packet which server is to send to the connected client. I want to change the alignment of the packet but i am unable to do so as javolution does'nt allow to change alignment.Please let me know the solution for this. Regards, Kuldeep Sharma.
0
3,842
thread by: kuldeeprsks | last post Dec 19 '11 by: kuldeeprsks
Creating a jar File in Command Prompt Start Command Prompt. ------------------------ Navigate to the folder that holds your class files: C:\>cd \mywork Set path to include JDK’s bin. For example: ------------------------------------------- If path & Classpath is set as environment variable then:
0
3,694
thread by: kuldeeprsks | last post Dec 19 '11 by: kuldeeprsks
A POJO is a Java object that doesn't implement any special interfaces such as those defined by the EJB 2 framework. POJOs also accelerate development. You can test your business logic outside of the application server and without a database. You don't have to package your code and deploy it in the application server. You also don't have to keep...
0
3,501
thread by: kuldeeprsks | last post Dec 19 '11 by: kuldeeprsks
Object SharingOn a Windows 2000 (XP etc.) platform, it is possible to ‘share’ the Component Enabler client object (the LINCEnvironment object) among users. This can be achieved by making use of the COM+ features of the platform itself. Setting up is easy The LINCEnvironment object can be made into a COM+ object, simply by declaring it as such...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.