35,618 Topics
![]() | |
I want to add jni code into my servlet,i have used JNI in my desktop application but now i want to add in my java web project. let me tell you a condition.i have logic code on c++ and i want to add that code with my java web project.so … | |
![]() | Greetings, I am trying to upgrade an existing system from CF 8 to CF 10. I have a datasource that connects to a Unidata database. The datasource connects on the CF 8 server using driver class com.ibm.u2.jdbc.UniJDBCDriver and driver uniJDBC. I set the datasource up on CF 10 the same … |
1. <?php 3. /* 4. $con = mysql_connect("localhost","root",""); 5. if (!$con) 6. { 7. die('Could not connect: ' . mysql_error()); 8. } 9. mysql_select_db("nvron",$con); 10. */ 13. $con = mysql_connect("localhost","nvronusr","DBpwd!@#"); 14. if (!$con) 15. { 16. die('Could not connect: ' . mysql_error()); 17. } 19. mysql_select_db("nvron", $con); 20. $DOWNLOADPATH='C:\Users\LENOVO\Desktop'; // … | |
Hi i have to make this program that will read a message from another text file and surround each occurence of an abbreviation with <> brackets. and the write the marked message to a different file. The program must beable to read from a text file that contains the abbreviations … | |
Who wrote the code for these "dumb"telepones and were is the fraking keyboard because this is not typing. Anyway I can not remeber the [/code] tags. I could not find the editor toolbar on this phone . Any help please. | |
1. Give a definition of a class named Arithmetic whose methods are three add() and multiply() and one subtract() and divide(). 2. Parameter for add() and multiply() should be two, three and four int respectively. 3. Parameter for subtract() and divide() should be two int. 4. Applying method calling in … | |
Hi, I've done my bachelors in Computer Science and was working for the past 2 and a half years in PHP and MySQL. Now I'm planning to change my career path to IBM Websphere Administration. However, changing directly from PHP to Websphere seems quite impossible. So I've planned to take … | |
Hello. please excuse my ignorance It has been 1 year or so since I finished my 2 million line desktop app. An app with extensive use of every thing you can think of as far as multi tabbed desktop with multi profile login. properties. properties xml properties apache db, extensive … | |
*getting following error. duplicate found Exception in thread "main" java.lang.NullPointerException at binarysearchtree.main(binarysearchtree.java:185) Java Result: 1 here is my code* public class node<T> { public node<T> root ; public T data; public node left; public node right; public node (T newData) { data = newData; left = null; right = null; … | |
A pseudoperfect number, sometimes also called a semiperfect number (Benkoski 1972, Butske et al. 1999), is a positive integer such as which is the sum of some (or all) of its proper divisors, A pseudoperfect number which is the sum of all its proper divisors is called a perfect number. … | |
Hy i have this js code: <script type="text/javascript"> var msg_id; @if(Session::has('message')) {{"msg_id = ".Session::get('message').";"}} <?php Session::forget('message'); ?> @endif $(function(){ jQuery.each( inbox, function( i, val ) { $('#contact_'+val).parent().addClass('inbox'); }); jQuery.each( others, function( i, val ) { $('#contact_'+val).parent().addClass('others'); }); $(".others").addClass('hide'); $("#inbox").removeClass('bg-inverse').addClass('bg-primary'); if(msg_id){ console.log(others); if($.inArray(msg_id.toString(),others)>-1){ $('#others').trigger('click'); } $('#contact_'+msg_id).trigger('click'); }else{ if(inbox_1.length>0){ if(others_1.length>0){ $('#contact_'+inbox_1[0]).trigger('click'); }else{ … | |
There are two classes: - ListViewActivity extends Activity, - MyAdapter extends BaseAdapter. MyAdapter overrides the getView method and creates an item in ListView, which drawn in ListViewActivity. I want to call setOnClickListener in MyAdapter.getView, but the listener must be placed in another class - not in MyAdapter. Standard approach is: … | |
//here's a singly linked list program with functions. However, I don't kbow how to add function #7 wherein //the position of the maximum number in the list should be displayed.. :( import java.util.Scanner; class Node { protected int data; protected Node link; protected int next_num; public Node() { link = … | |
I hear that the new version of Java, Java 8, does not support a way to connect to MS Access database... I have a rather big problem in this case as I created all my databases with access (And im not porting them to SQL). I wanted to update my … | |
I'm making a student system with console based java. I'm trying to load a text file's content to an ArrayList and later on search with a student registration number and list down his/her name and program. I'm having a hard time loading the text file contents in an ArrayList so … | |
Runtime r = Runtime.getRuntime(); Process pr = r.exec(cmdString) I can get the prompt result when I try "cmd /c type f1.properties", however, when the size of file is larger the command will hang and no output I could get and no exception occurred. Is there any limitation for java to … | |
I am trying to make a vehicle advertising website like autotrader or ebay. I am using html, css, jsp, java and mysql for the database.Basically I want the user to be able to search for a vehicle (advert) via a form, then they are directed to a results page after … | |
I faced a NullPointerException for below code. What is the cause? import javax.swing.*; import java.awt.*; import java.awt.event.*; import net.sourceforge.jdatepicker.*; import net.sourceforge.jdatepicker.graphics.*; import net.sourceforge.jdatepicker.impl.*; import net.sourceforge.jdatepicker.util.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class selectDate extends JFrame implements ActionListener { JLabel CheckDate; JButton check; public UtilDateModel model; public JDatePanelImpl … | |
Hello friends, I want to develop a video conferencing project in java.For that i have spent some time to try recording video in java.But i finally thought to get some help.I have tried using JMF.My system OS is Windows 8.1 pro 64 bit.Any Knowledge would be helpful. Regards. | |
Hi there daniwebers. Its time for my project work and i want to create an sms based application that will aloow users to donate money to charity which will be used to help people who really need financial assistance. I want to wirte the program using java. But my java … | |
It's been a few days since I had the time to dig into java, now I went to eclipse and all I see is errors .. Here is a picture. Any ideas how to fix it? That is just weird because it says no build path was found while i've … | |
This thread was started in [Click Here](http://www.daniweb.com/software-development/java/threads/482431/adding-controls-to-a-background-label-and-structuring-the-source-code), and I created this thread in hopes of making it easier to find. I have been working on a program that creates several controls dynamically in a LayeredPane.The code to add all the controls to the Pane has gotten really long. Is there … | |
I have the following form that works: http://craigcoleman.com/java/julia/ I'm trying to do the same thing with this form and I can not get the parameters to work with the form. I am using java script to get the parameter values. Please throw me a bone. <html><head><title> Test New </title> </head> … ![]() | |
I am connecting to a repository for accessign to a code. I would like to run this code from the repository, but I read somewhere it is not possible to do that. What should I do to run a code from a repository? | |
Hey guys! So the error I'm getting is "cannot reference hoursWorked before supertype constructor has been called". I've just recently learned about using abstract, extends, and the keyword "super". What should I do in order to get rid of the error? Am I missing something? Here's my code so far: … | |
i'm unable to get my entered values i initialized array to enter student record and also write functions to get this done but when i call functions i can't get any value and all output is "null" package javaapplication10; import javax.swing.JOptionPane; public class JavaApplication10 { public int x=10; public int … ![]() | |
I have no errors when public static void main(String[] args) is not in the program, but when I put it in everything becomes a mess. package classexample; public class ClassExample { public static void main(String[] args) { int Power = 0; int Speed = 0; int TraveledDistance = 0; void … | |
Hi Everyone, I know this such Exception is not strange while doing J2EE, but I cant figure out how my app going wrong at this step. My Code is quite long, so I will post only what I think is relevant. For the full source code, please go to: http://code.google.com/p/eagleit/ … | |
Hi guys, I'm working on my homework: I have to use a data structure to store words read from input file, i chose AVL tree to be the data structure, i implemented the tree and tested it with hard coded words, it works fine. However, with words read from input … | |
Following is my program i need to add scroll to jframe and I have paint method in it package other; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Container; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.ScrollPane; import java.awt.Stroke; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.geom.Line2D; import javax.swing.*; public class MainDrawCycle extends JPanel implements ActionListener { … |
The End.