|
I know it's an ASP.NET application question but since it's also related to Java, I thought that here is also a relevant place to ask. But I'll try there.
|
|
|
|
|
There is nothing Java related in your question.
|
|
|
|
|
WebLogic is an Oracle server for running Java apps.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
OP's question still has nothing to do with Java programming.
|
|
|
|
|
True. But I don't see a better place to put it on CP.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
It belongs in Q&A or Hosting & Servers, it has nothing to do with Java.
|
|
|
|
|
ThetaClear wrote: so I wanted to know if I can deploy my asp.NET application on that server (or what I have to do for that)
In general - no.
There are specialized instances such as writing a proxy or running a command line app but I doubt that is what you had in mind.
|
|
|
|
|
Hi everyone,
I am trying to connect Oracle database from my web application using Eclipse.
But I got the error:org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
I used below code:
public static void initDB(){
try {
BasicDataSource ds = new BasicDataSource();
ds.setDriverClassName("oracle.jdbc.driver.OracleDriver");
ds.setUrl("jdbc:oracle:thin:@localhost:1521:xe");
ds.setUsername("mybank");
ds.setPassword("123456");
jdbcTemplate = new JdbcTemplate(ds);
isConnected = true;
initSystemPros();
} catch (Exception e) {
System.err.println("Cannot connect to DataBase");
isConnected = false;
}
}
I tried to use SQL Developer to create a connection using above settings and successful.
Do you know what is wrong ?
Thanks and regards,
Tai
|
|
|
|
|
Be sure that `xe` is your `Service Name`.
If the connection is successfull but you have this exception `SQLNestedException: Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection) at`
"
you must have an incompatible version of JDBC, install the correct one:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html
|
|
|
|
|
can you please tell me the code for adding smileys in client server chatting program in java.
|
|
|
|
|
There is no such code. You need to design some smileys for yourself, and write the code in the server and client that handles them.
|
|
|
|
|
Hello there fellow java users,
I'm dealing with some situations with Java Eclipse, I was writing the codes for a public class related to 'books". basically using instance data for the author, publisher, copy right date, etc. I feel like I've got all the correct codes and everything but I feel as if I've stumbled onto a certain error that I can't fix. Every-time I try to run the program the console output says: <terminated> book[Java Application] C:\Program Files (x86)\Java\jre7\bin\javaw.exe.
I don't know what I did wrong, if anybody can help me that would be great. Here are the codes i wrote:
package book;
public class book {
public static void main(String[] args){
}
private String title;
private String author;
private String publisher;
private int copyRightDate;
public book(String authorName, String publisher, String author, String year22) {
title = getTitle();
author = getAuthor();
publisher = getPublisher();
copyRightDate = year2();
}
private int year2() {
return 0;
}
public book(String authorName, String publisher2, String author2,
int year32) {
}
public book()
{
author = "Ridley Pearson";
title = "Kingdom Keepers";
publisher = "Disney";
}
public void setAuthor(String authorName) {
author = authorName; }
public String getAuthor() {
return author; }
public void setTitle(String bookTitle) {
title = bookTitle; }
public String getTitle() {
return title; }
public void setPublisher(String publisherName) {
publisher = publisherName; }
public String getPublisher() {
return publisher;}
public void setCopyRightDate(int date) {
copyRightDate = date; }
public int getCopyRightDate() {
return copyRightDate; }
public String toString() {
return (title + "\t" + author + "\t" + publisher + "\t" + copyRightDate);}
public class bookshelf{
}
public void main1(String[] args) {
}
final int year2 = 2010;
final int year3 = 2011;
{
}
{
new book ("Kingdom Keepers III\n", "Disney In Shadow\n", "Ridley Pearson\n", year2);
new book("Kingdom Keepers IV\n", "Power Play\n", "Ridley Pearson\n", year3);
System.out.println("Kingdom Keepers III");
System.out.println("Kingdom Keepers IV");
}
}
Andrew Besbekos
Computer Science Student
|
|
|
|
|
Your main method has no body, so it never does anything.
|
|
|
|
|
so what is he supposed to do???
|
|
|
|
|
|
{
new book ("Kingdom Keepers III\n", "Disney In Shadow\n", "Ridley Pearson\n", year2);
new book("Kingdom Keepers IV\n", "Power Play\n", "Ridley Pearson\n", year3);
System.out.println("Kingdom Keepers III");
System.out.println("Kingdom Keepers IV");
}
at first ,static-method can't transfer construct-method;the virtual can't recognize them for transfering each other,and static's prior higher than construct
at second , if u want to test main ,and write printout static and construct ; u main-method should new book,through print result,u can find their prior
|
|
|
|
|
hello, Im having a trouble on how to read the Mifare card using Java smartcardio.
For now, I write a code that can only read the apdu of the card. hope i can help from you guys, thanks
package nfctry;
import javax.swing.*;
import java.util.*;
import javax.smartcardio.*;
import javax.swing.JOptionPane;
public class NFCr {
final protected static char[] hexArray = "0123456789ABCDEF".toCharArray();
public static String bytesToHex(byte[] bytes) {
char[] hexChars = new char[bytes.length * 2];
int v;
for ( int j = 0; j < bytes.length; j++ ) {
v = bytes[j] & 0xFF;
hexChars[j * 2] = hexArray[v >>> 4];
hexChars[j * 2 + 1] = hexArray[v & 0x0F];
}
return new String(hexChars);
}
public static void main(String[] args) throws Exception {
TerminalFactory factory = TerminalFactory.getInstance("PC/SC",null);
System.out.println(factory);
List<CardTerminal> terminals = factory.terminals().list();
System.out.println("Terminals: " + terminals);
if (terminals.isEmpty()) {
throw new Exception("No card terminals available");
}
CardTerminal terminal = terminals.get(0);
while( true )
{
terminal.waitForCardPresent( 0 );
try {
Card card = terminal.connect("*");
CardChannel channel = card.getBasicChannel();
CommandAPDU command = new CommandAPDU(new byte[]{(byte)0xFF,(byte)0xCA,(byte)0x00,(byte)0x00,(byte)0x04});
ResponseAPDU response = channel.transmit(command);
byte[] byteArray = response.getBytes();
System.out.println(bytesToHex( byteArray ) );
Thread.sleep(1000);
} catch (CardException e) {
e.printStackTrace();
} finally {
}
}
}
}
|
|
|
|
|
|
the question is,
how can I read the data that contain in the tag (mifare). Since i didn't find any solution regarding my problems. I need to know how to read mifare card.
|
|
|
|
|
I would start by reading the documentation for smartcardio and for the card in question.
|
|
|
|
|
How to validate the date in java. conditions are User can enter the data once in a day for perticular username. please provide the solution
|
|
|
|
|
|
Thanks for your response.
User can enter the data once in a day. once user enter the data ex: Sep 21st, he can not enter data for that particular user id in Sep21st. in future also he cannot add the data for Sep21st. that is my requirement. Could you please provide the solution
|
|
|
|
|
The solution is fairly obvious. Keep a record of each user and whether he entered data, and on what date. Then you just need to check that to see whether he/she is allowed to enter any more.
|
|
|
|
|
how to convert ascii characters to septet and then how to pack septet in 8 bit representation ..
Reply quickly
Thanks for reply in advance
|
|
|
|