35,618 Topics
![]() | |
Is it possible to run C/C++ program on java platform? if yes? please tell me how can i get the output of the program?? | |
how can i detect all cycles in the graph? i tried to use DFS and back edges and this ddetect some loops in te graph but not all cycles. | |
Hi, I am deveoloping a Web Service solution that is hosted inside a JBoss 4.2.3 sever and connects to a JMS queue that is hosted on another server. So far I am creating a new connection to the JMS queue each time the web service is called, this means that, … | |
[ICODE] public void actionPerformed(ActionEvent evt) { String arg=evt.getActionCommand(); if(arg.equals("ORDER INFO")) { AppletContext context = getAppletContext(); context.showDocument ("file:///C:/Java/jdk1.6.0_24/bin/Order_info.html", "_blank"); Applet Order_info = context.getApplet("Order_info"); }[/ICODE] | |
Let's say I have a text file with these contents: [CODE] color1 = yellow.$199 * 100 color2 = red.$1 * 22 myNextColor = green.$3 whatsNext = blue.$$ oneMore = orange.$ [/CODE] I need to be able to get an array like this: [CODE]colorsInFile = ["yellow","red","green","blue","orange"][/CODE] In python, the regex for … | |
[code]ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated[/code] its the exception, i want to match it with condition and take decision , but its not working [code]if(e1.getMessage().equals("ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated"))[/code] | |
sir/ma'am can somebody help me configure Textpad As i want to compile a java file and run it that i have saved in the directory of my choice 1.configure 2.preference 3.select Tools on the left hand side of the preference panel and select the java tools by adding them. after … | |
hello all i have a jap project.in which i have a lot of log(txt) files.what i want to do is searching a particular number in all log files and cut some fields of lines containing that number and show them as table in jsp page. currently i am using shell … | |
Hy all i want to display data in table format... as like below result. column1 column2 column3 1 2 sdg 3 4 dfg 4 6 gfdsg 6 7 ffdsg the following snap of my code is take the column title dynamically [CODE] <c:forEach items="${emplistlist}" var="demos"> <TD><c:out value="${demos.columnam1}" /></TD> </c:forEach> [/CODE] … | |
hi all, I am quite new to J2EE . I want to connect mysql database which one will be best jsp or servlet.... the thing is we need to establish connection each time. Insted of that just one Java class will do that and the other classes call the method … | |
I was making a basic nooby java tribe game, and I needed a way to return to main menu. Can anyone tell me of any methods? This is my current code (incomplete) I want it to return to main menu if a certain number is entered after the stats are … | |
I can ot get my output to reflect accurate info, does anyone have a possible solution? /////////////////////////////////////////////////////////// import java.util.Scanner; public class Count { public static void main (String[] args) { String phrase; // a string of characters int countBlank; // the number of blanks (spaces) in the phrase int length; … | |
Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has … | |
Hi Everyone, I am using the java applet to take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When … | |
hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = … ![]() | |
Sir/ma'am , please help me how can I convert an integer to a string in java without using a convertSimple(); convertInteger(); convertFormat(): | |
Hey guys, I'm working on a game, and I was trying to mirror the gif images inside the program so I wouldn't have to do it manually (And also so it wouldn't use twice as much space to store the mirrored gifs). Anyway, I Google'd it and found [URL="http://stackoverflow.com/questions/1708011/create-a-imageicon-that-is-the-mirror-of-another-one/1708909#1708909"]this answer[/URL], … | |
Hey all, I'm having some issues using ArrayList. Here's the code.. [CODE] ArrayList<Double> var = new ArrayList<Double>(); var.add(15.0); var.add(0.0); [/CODE] I could just use [CODE] double[] var = {15.0 , 0.0}; [/CODE] for this.. but I'm trying to teach myself Java and need to understand the use of ArrayList. Any … | |
Hello to everyone, I am new to this forum as I am new to Java. I would like to know if anyone has come up with a method that helps in learning the huge collection of classes of the Java API. I know that question is not easy to answer. … | |
Hello great java minds. Could you please tell me why I get "illegal start of expression" errors for the following headers? Thanks for your wisdom!! Lines generating this error: [CODE]public static String getName()[/CODE] --and-- [CODE]public static void displayResults()[/CODE] Here is my first class (that includes this code): [CODE]import java.io.*; import … | |
Hello dere.. I am trying to create a log-in and log-out page in JSP. HttpSession started when it get successful log in.While calling session.invalidate() for log out, session did not get destroyed,it retains all the attribute it had.. What should i do?? plz help me | |
Hi, I had developed a system which run well at localhost but once run at server, the following error will appear: Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\awt.dll: The specified procedure could not be found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown … | |
Hi there; There is such a simple code here, and with the propotion of its simplicity, it drives me crazy. Here is the code: [CODE] private void fillArrayLists(String fileName,ArrayList <String> list) { try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream(fileName); … | |
hi guys, currently am planning to buy an exam simulator for SCJA exam so which one is the best to get prepared for the test [COLOR="Red"]ucertify [/COLOR]or [COLOR="Red"]whizlabs[/COLOR]?? if there's any other of these please mention it here. Thanks | |
can anyone tell me why this project(attached) is slow in execution!!!! is there any remedy for this problem...... please anyone tell some tip to make this project to run faster.......... | |
Hi, I'm getting the following while trying to execute my spring program [CODE] 5 Jul, 2011 7:22:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0: display name [org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0]; startup date [Tue Jul 05 19:22:08 IST 2011]; root of context hierarchy 5 Jul, 2011 7:22:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions … | |
I am making standard login panel in JSP, and it looks like this: Please enter user name and password: Username: [__________] Password: [__________] [submit] [reset] Where underlines between brackets are edit boxes, and "submit" and "reset" are buttons. It corresponds with this code: [CODE] <form action="main.jsp" method="POST" name="form"> Użytkownik: <input … | |
hello everybody, i am using java as front end and ms access as back-end for my mini project, in my database, in couple of the tables there is field which i've declared [COLOR="red"]primary key[/COLOR] for those respective tables and which has type of [COLOR="Red"]autonumber[/COLOR]. so my question is, while inserting … | |
Hi, I wanted to know if there is a configuration in JBOSS to deploy a java application but not ready to serve until we wish to start the application for the requests, like in websphere having a option to start a application after deployment. Can anyone help me.??? Thanks in … |
The End.