Home » Developer & Programmer » JDeveloper, Java & XML » Need Help call Java Programm from PLSQL (merged) (JDK1.6.0_45)
Need Help call Java Programm from PLSQL (merged) [message #671038] Sun, 12 August 2018 02:34 Go to previous message
MUKESH_ALTEC
Messages: 3
Registered: August 2018
Junior Member
HI all experts,

I have a Java Program which shows the List of Ports available in my system.

This program running fine at Command Prompt. But Now i want to use this Java program through PL/SQL.

But i am facing error as attached.

Spend Lot of time But can't Success.

Below is my Java Program.

import javax.comm.*;
import java.util.*;

/** List all the ports available on the local machine. **/
public class TestPorts
{
public static void main (String args[])
{

Enumeration port_list = CommPortIdentifier.getPortIdentifiers();

while (port_list.hasMoreElements())
{
CommPortIdentifier port_id = (CommPortIdentifier)port_list.nextElement();

if (port_id.getPortType() == CommPortIdentifier.PORT_SERIAL)
{
System.out.println ("Serial port: " + port_id.getName());
}
else if (port_id.getPortType() == CommPortIdentifier.PORT_PARALLEL)
{
System.out.println ("Parallel port: " + port_id.getName());
}
else
System.out.println ("Other port: " + port_id.getName());
}
} // main
} // class PortList


  • Attachment: Error.jpg
    (Size: 128.92KB, Downloaded 3449 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Oracle Retail v16 seeded customization - anyone pulled it off?
Next Topic: Chat Box Implementation
Goto Forum:
  


Current Time: Fri Apr 26 19:50:16 CDT 2024