35,618 Topics

Member Avatar for
Member Avatar for sandyprc78

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 …

Member Avatar for raj.mscking
0
658
Member Avatar for jdavenport

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 …

Member Avatar for Sculli
0
456
Member Avatar for infoitmanoj

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'; // …

Member Avatar for dinhunzvi
0
4K
Member Avatar for Thurston_1

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 …

Member Avatar for Thurston_1
0
729
Member Avatar for James_30

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.

Member Avatar for James_30
0
152
Member Avatar for khennxi

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 …

Member Avatar for Schol-R-LEA
-3
846
Member Avatar for ronaldpaul

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 …

Member Avatar for jwenting
0
1K
Member Avatar for James_30

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 …

Member Avatar for James_30
0
172
Member Avatar for ali11

*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; …

Member Avatar for Taywin
0
419
Member Avatar for desert564

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. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for bolfescu

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{ …

Member Avatar for mattster
0
154
Member Avatar for LNU1

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: …

Member Avatar for LNU1
0
5K
Member Avatar for edamay.payay.9

//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 = …

Member Avatar for edamay.payay.9
0
469
Member Avatar for MasterHacker110

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 …

Member Avatar for Schol-R-LEA
0
613
Member Avatar for momal

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 …

Member Avatar for JamesCherrill
0
5K
Member Avatar for Wei_3

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 …

Member Avatar for JamesCherrill
0
670
Member Avatar for ianian944

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 …

Member Avatar for peter_budo
0
2K
Member Avatar for gajen007

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 …

Member Avatar for raj.mscking
0
7K
Member Avatar for devgit2810

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.

Member Avatar for llaspina
0
1K
Member Avatar for directorabbey

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 …

Member Avatar for llaspina
-1
164
Member Avatar for Slavi

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 …

Member Avatar for Wei_3
0
117
Member Avatar for henryz_box

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 …

Member Avatar for henryz_box
0
330
Member Avatar for 1885

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> …

Member Avatar for iamthwee
0
907
Member Avatar for Somayeh_1

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?

Member Avatar for llaspina
0
182
Member Avatar for laguardian

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: …

Member Avatar for JamesCherrill
0
228
Member Avatar for wanttocode

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 …

Member Avatar for Ralphael
0
111
Member Avatar for gua543

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 …

Member Avatar for gua543
0
437
Member Avatar for Tu Dinh

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/ …

0
455
Member Avatar for mark_jason

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 …

Member Avatar for Taywin
0
6K
Member Avatar for Pravinrasal

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 { …

Member Avatar for Pramodkumar_1
0
7K

The End.