32,199 Topics

Member Avatar for
Member Avatar for Majestics

Can some one provide me an example to call dll from java? I learning some thing about JNI , also linkage with c++ but doesnt found any cool stuff on c# and java... I want a free solution. Thanx in advance.

Member Avatar for Majestics
0
217
Member Avatar for london-G

Hello, I would like to retrieve the data from one of my database table. I have read many stuff about it and found out that I need to create a table model which is quite confusing to me. Basically my table consists of customer information. What is the best way …

Member Avatar for nikolaos
0
1K
Member Avatar for shasha56959

hello,i have a problem in my math project. my project is to write a program that read set of element and its relation. the input data will be from text file.(Set<space>Relation). {1,2,3} {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3)} i have no problem reading text file into the program but im stuck when i want to …

Member Avatar for NormR1
0
153
Member Avatar for mits28

I am trying to learn JavaMail API.i am working on this.i have search much from google..i know for hosting mails, mail server is require and Apache james is a open source server.i have downloaded that.but i am not able to configure that.i dont understand how actualy javamail work with James.I …

Member Avatar for godzab
0
177
Member Avatar for trishtren

Hey, Iv been working a lot with binary files recently and i am currently stuck trying to save a string to a file. The problem is i do not want the literal string value of "010100000000000100010011000000000001000100110" to be saved to the file I want the above binary string to be …

Member Avatar for NormR1
0
1K
Member Avatar for speakon

Hello! I am starting a small text based game, I have created my set and get methods for my player class: import java.util.*; public class player extends main{ /* * Player attributes: * Name * Weight * Morale * Money */ //PLAYER ATTRIBUTES private String name; private int weight; private …

Member Avatar for trishtren
0
286
Member Avatar for sirlink99

I am making a game, and I am wondering how to make an image from a graphics object. I have tiles stored in an xml file. I then read from this file to make the level, however I would like to have a thumbnail for each level. This is why …

Member Avatar for richieking
0
79
Member Avatar for cvanithakpm

main() is a static method and is part of class. Then how is it that main can access instance members?

Member Avatar for richieking
0
129
Member Avatar for anilchuthur

i havae problem java connection with sql server 2005 in windows authentication mode my code is as follows Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); Connection connection = DriverManager .getConnection("jdbc:sqlserver://localhost:1433;database=dbName;integratedSecurity=true;");

Member Avatar for anilchuthur
0
326
Member Avatar for raviaaaa

HI All i am new to java jdk 1.4 and tomcat 4 my requirement is id desc name firstname lastname 1 hi ravi m last 1 hi ravi m middle 1 hi ravi m mapp 2 hi kiran ha hey 3 hi vinoth hello yes id is ----id desc name …

Member Avatar for JamesCherrill
0
409
Member Avatar for jackmaverick1

During the process of creating my latest game, I've come across the problem of collisions. In the last few games I've made, I've used a system of collision detection that relyed on two rectangle's methods. This seems to work, but doesn't provide a method for dissallowing an entity entry into …

Member Avatar for jackmaverick1
0
212
Member Avatar for warpstar

Can someone explain the code below? Is .next an operator in java that pushes the pointer to the next node in the linked list? Node E < -- type node? public E dequeue ( ) throws EmptyQueueException { if (isEmpty ( )) { throw new EmptyQueueException (”Queue under flow”) ; …

Member Avatar for warpstar
0
143
Member Avatar for DanCuster

Hello everyone, I am building a tic-tac-toe game for my final and everything is going smoothly except for one problem. The names I ask the user to enter at the beginning of the game, a replaced with null when the messagebox that shows who won appears. Here is the code, …

Member Avatar for JamesCherrill
0
638
Member Avatar for nikolaos

How can i add some space between these four components and the JFrame window? ![jframe_view](/attachments/large/0/jframe_view.jpg "jframe_view")

Member Avatar for nikolaos
1
18K
Member Avatar for rupes0610

I have a tab delimited text file with text like this: Wed Jun 13 01:00:19 2012 | error | client xx.xxx.xxx.x | rdy 784 bsy 16 The pipe | signifies that the tab delimiter. I need to convert this into a CSV file using Java. I also need to split …

Member Avatar for Ezzaral
0
143
Member Avatar for malsmit2014

package furniture; import java.io.*; import java.util.*; public class Program3 { public static void main(String[] args) { //array of 10 Furniture object references String[] furniture = new String[10]; String filename = "furnitureData.txt"; Scanner input = null; try{ input = new Scanner(new File(filename)); }//end try catch(FileNotFoundException e){ System.err.println(e); System.exit(1); }//end catch }//end …

Member Avatar for DavidKroukamp
0
295
Member Avatar for GlenRogers

I need to search a Maps keys based on user input. So in a text field the user may type "M",then hit a button marked "search" this will bring up all keys that begin with M. Mike Molly Michael Michelle Marvin If they type "Mi" it will bring up Michael …

Member Avatar for JamesCherrill
0
110
Member Avatar for hyung101

Can someone help me with a short program that calculates age, the user will input their birthday and the program displays the age..

Member Avatar for poojavb
0
3K
Member Avatar for warpstar

Hi there, I am having trouble understand how they derive these running times for the code in the image below. [http://i.imgur.com/usK9U.jpg](null) I am having trouble especally with log n running times, how are they derived? especially the bottom left slide. If someone can shed some light on this, I would …

Member Avatar for Mbot
0
150
Member Avatar for koduruabhinav

I am retrieving a value from DB. Datatype in DB:---- number(6,2). So i retrieved as decimal from db as getdouble(attrubute) So if 10 is present in DB i am getting 10.0. Is there any way to get 10 and at the same time if 10.2 is there i require as …

Member Avatar for Ezzaral
0
101
Member Avatar for GlenRogers

Hey all I need a bit of help if someone can! im writing(trying to!) a small application for a friend who owns a computer repair shop. Its a 'booking in' application. Someone brings a computer/device in and whover is on the front desk takes some details. Name, Street, Town, Postcode …

Member Avatar for GlenRogers
0
332
Member Avatar for coroll

Hi ! I am writing simple email client that uses TCP/IP sockets to interact with an SMTP server to send email messages. this is my code import java.io.*; import java.net.*; import java.util.*; import java.text.*; public class TestSendMail { public static void main(String args[]) throws IOException { Socket socket; DataInputStream dataInput; …

Member Avatar for NormR1
0
124
Member Avatar for zazizu

meter billing for company and the application must hold information 5 customer . use array and repetition structure step is :- 1) prompt user to input type of customer (residential or industrial),past meter reading, & current meter reading. 2)seperate them as either r for residential or i for industrial use …

Member Avatar for JamesCherrill
0
88
Member Avatar for enakta13
Member Avatar for pitic

I have a task to create an app that scans a 2D code (DataMatrix) with a usb scanner (set to work as a serial port), then creat a zip file from the inputstream, unzip it and get an xml. i have managed to scan the code, get the inputstream but …

Member Avatar for pitic
0
264
Member Avatar for pooja.shinde

I want to verify users using **Active directory**. I have simple code to connect to **LDAP server** from LDAP client. But it is giving "**Naming Exception :- simple bind fail**" msg. Can anyone help with this?

Member Avatar for ejosiah
0
62
Member Avatar for am30568

I new with database and java.I want to show result of the table WHERE USER = USER LOGIN NAME private void query() { try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@andy-lcoyx7gfw:1521:orcl", "andy", "andy"); String sql = "select * from schedules where (userName = @User) "; //'{$_SESSION['username']}' Statement stmt = con.createStatement(); ResultSet …

Member Avatar for ejosiah
0
697
Member Avatar for jdseader

I have written many FORTRAN codes, but am new to Java, which I find much more powerful and more difficult. I have a program that was written several years ago in MS Access. The program consists of a main window with buttons that take you to other windows where you …

Member Avatar for twmgeo
0
836
Member Avatar for trektrak

Hey Guys, I'm playing with android webview.. and I would like to have it running background whenever I press home button... Please let me know if this is possible... Here are the codes, maybe I need to tweak anything .. package trektrak.GeoWebView; import android.app.Activity; import android.os.Bundle; import android.webkit.GeolocationPermissions; import android.webkit.WebChromeClient; …

Member Avatar for ejosiah
0
240
Member Avatar for enakta13

I intend to write a GUI java program which convert a decimal(base 10) to hexadecimal(base 16). Floating point decimals are also valid input. the code of my program private void myEnterButtonActionPerformed(java.awt.event.ActionEvent evt) { float mynum; mynum = Float.parseFloat(this.myNumberField.getText()); Float floatObject = Float.valueOf(mynum); myResultField.setText(Float.toHexString(mynum)); } but when I run the program, …

Member Avatar for enakta13
0
440

The End.