Eclipse Debugger is not working
Hi All,
I installed eclipse in my system, everything is working fine. But i am not able to use debugger in eclipse. During Runtime, system showing the GUI debugger instead of eclipse.
Please do let me know, should i need to do any other configuration for debugger.
Regards
Rajkumar Narasimman
Hi Rajkumar,
first of all you have to upgrade to kernel version 7.21 (or higher). That's all you need to do, I assume that you've got the current ADT version installed. Here is a blog by Christopher Kaestner : FAQs - ABAP Development Tools for Eclipse
There you can find some sentences about the debugging within Eclipse.
Please note that feature matrix here: ADT Feature Availability Matrix for AS ABAP Releases
Have a look at the SP-stack installed on your development system and compare it to the matrix. So you can determine if your SP-level is sufficient.
If you still face any problems maybe this question can help you: Problem: Debugging with ABAP in Eclipse
Hope it helps.
Best regards
Martin
Similar Messages
-
Update debugger is not working
Hi All,
My problem is "Update debugger is not working" is not working.
In VA02, I am creating a EDI output type, before saving it i am going into debug mode activating the 'Update Debugger'.
But after that a message is coming as 'Update debugging has been triggered' but debugger screen is not coming up.
Please let me if you have inputs on this.
Thanks
Satyamkumar Jha>
Satyamkumar Jha wrote:
> Hi Saravraj ,
>
> Even if 1 session is opened then also it is not going for update debugging.
>
> Thanks
> Satyam
Did you check if a COMMIT statement is getting triggered(you can do that by placing a break point in the debugger at the statement COMMIT)? Click on F5 once the control reaches COMMIT statment and wait for a new session to
get opened for debugging.
Not sure, about the debugger that you are using(classical/New), lately, I have faced issues with update debugging while using new debugger, it would be a good idea to cross-check in classical debugger.
-Rajesh. -
Adobe 10 ReaderX debugger.js not working & security Issues
Hi,
I am trying to get this javascript http://johnford.is/downloads/pdf_bookmark.js working. It enables a bookmark in Adobce Reader and apparently quit working in version 10 under windows 7. I copied the code here C:\Users\Owner\AppData\Roaming\Adobe\Acrobat\10.0\JavaScripts. But when I copy the debugger.js which ships with Adobe it does not work eiter complaining about syntax:
ReferenceError: getString is not defined
25:Folder-Level:User:debugger.js
My more important question is not how to get the debugger working but how to get the code working to create the bookmark. I tried to change all the enhanced security and options in the javascript preferences screen. I think something else is required not to get this code work because of security in Adobe 10. If you look at comments the developer left in the code they had to add code to get it working because of security in Adobe 8:
* Extra security in Adobe Reader 8 forces access of global variables
* by multiple documents to be setup as a 'trustedFunction'
getPDFBookmark = app.trustedFunction ( function() {
app.beginPriv();
return global.pdf_bookmark;
app.endPriv();
Bottom line is the new bookmark feature in Adobe 10 is cumbersome and not intuitive and I want to use what this other developer wrote. A bookmark should be 1-click and as natural as placing a bookmark in a book. Duh! No one at Adobe understands that.
chau from Chile.
Walker RoweChange
// Add bookmark menu
app.addSubMenu({
cName: translation.bookmark,
cParent: "Tools",
cExec: "void(0);",
cEnable: "event.rc = (event.target != null);"
to
// Add bookmark menu
app.addSubMenu({
cName: translation.bookmark,
cParent: "File",
cExec: "void(0);",
cEnable: "event.rc = (event.target != null);" -
Weblogic plugin is not work, help me!!
platform : Windows XP Home Edition
Eclipse Version : 2.1
J2SDK : 1.3.1_06
Weblogic plugin 1.0.0c
Weblogic version : 6.1sp3
Weblogic install folder : C:\Server\bea
Eclipse Plugin setting
Weblogic
Version : 6.1
Bea Home : C:\Server\bea
Domain Name ; mydomain
Domain Directory : C:\Server\bea\wlserver6.1\config\mydomain
Serve Name : localhost
User : System
Password : passwd
Hostname : localhost
Port : null
Classpath
Classpath before the Weblogic libraries
C:\Server\bea
Classpath after the Weblogic libraries
Null
JavaVM Options
JVM Options
-hotspot
-Xms32m
-Xmx200m
-Dweblogic.ProductionModeEnabled=
JNI Library path
Null
When Weblogic start in Eclipse, Error Message Occured.
----- Error Message --------
<2003-06-10 ¿ÀÈÄ 01½Ã33ºÐ44ÃÊ> <Info> <Security> <Getting boot password from
user.>
Enter password to boot WebLogic server:Starting WebLogic Server ....
<2003-06-10 ¿ÀÈÄ 01½Ã33ºÐ47ÃÊ> <Notice> <Management> <Loading configuration
file .\config\mydomain\config.xml ...>
<2003-06-10 ¿ÀÈÄ 01½Ã33ºÐ50ÃÊ> <Emergency> <Security> <Authentication failure -
reenter password to boot weblogic server:>
<2003-06-10 ¿ÀÈÄ 01½Ã34ºÐ54ÃÊ> <Emergency> <Security> <Authentication failure -
reenter password to boot weblogic server:>
The WebLogic Server did not start up properly.
Exception raised:
java.lang.SecurityException: Authentication for user system denied
at weblogic.security.SecurityService.initializeSuid(SecurityService.java:409)
at weblogic.security.SecurityService.initialize(SecurityService.java:119)
<2003-06-10 ¿ÀÈÄ 01½Ã34ºÐ55ÃÊ> <Emergency> <Server> <Unable to initialize the
server: 'Fatal initialization exception
Throwable: java.lang.SecurityException: Authentication for user system denied
java.lang.SecurityException: Authentication for user system denied
at weblogic.security.SecurityService.initializeSuid(SecurityService.java:409)
at weblogic.security.SecurityService.initialize(SecurityService.java:119)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:400)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:206)
at weblogic.Server.main(Server.java:35)
'>
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:400)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:206)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exceptionOriginally posted by: eclipse.rizzoweb.com
Tom Roche wrote:
> How to set a file exclusion pattern? What I mean:
>
> I work on a project that is not natively an Eclipse plugin. In order
> to make it acceptable to PDE, I run target=eclipse in the project's
> build.xml: among other things this copies special files (e.g.
> plugin.xml, build.properties) from the project's eclipse folder to the
> project's root.
>
> After running the target, I can Update Classpath, and I'm *almost*
> ready to build the project with Eclipse (C-b or rclick>Build Project).
> First I need to exclude some files. The way I do this in the UI is
>
> 0 select the project's Properties>Java Build Path>Source
>
> For each of 3 source folders (e.g. /src/foo, /src/bar, /test):
>
> 1 expand the folder node, choose the Excluded subnode, and hit Edit
>
> 2 in the Exclusion Patterns section of the resulting dialog, hit Add,
> and enter the exclusion pattern
>
> **/Baz*
>
> 3 hit OK in that dialog and its parent
>
> But this is tedious/error-prone for me and our users. I'm hoping there
> is a way that I can set the appropriate value in build.properties (or
> elsewhere) that will allow me to avoid this manual labor. Is there?
>
> Feel free to forward, and to reply directly to me (as well as the
> group), and TIA.
You can manipulate the .classpath file, if you're careful.
Do it manually (via the UI) and then go look at the .classpath file.
You'll see an entry like this:
<classpathentry excluding="**/Baz*" output="classes" kind="src" path="src"/>
See the excluding= attribute? That's what you want to create when you're
"building" for PDE.
HTH,
Eric -
Eclipse Visual Editor-not working-palette no icons, no visual capabilities
Hello,
I installed eclipse recently with the intention of using it to lay out java components in my applications. I have installed GEF, EMF and the visual editor with the exception of the WEP parts, as eclipse said they had invalid licences. I have the problems mentioned in the title and eclipse does not bring up an option to install the WEP components of the visual editor any more. Does anyone know anything about how this could be fixed? Thanks in advance,
Paddy.I don't think it aims to be the best. It's not even close to working. You can do really simple things, and nothing more. And you can't first write the class by hand, and then switch over to the UI builder, and you aren't allowed to touch the code if you started in the UI builder. (This is how it was about a year ago).
The free
Eclipse should be very good at core features but also
be a platform for plug-ins. If it's too good at
everything it can't attract commersial initiatives.
If this has worked there should be a better GUI
builder for sale than the one you can get for free.
But I don't know if there is really.I haven't seen any good ones for sale, but I've seen that borland will build the next generation of JBuilder on the Eclipse platform, so I think that they will sell their UI builder as a plugin.
/Kaj -
GWPA for HTML5 in Eclipse - Generated program not working
I have been using GWPA to create test front-ends for my GW services in HANA Studio for months. From workflow to simple services exposing cost centers, etc. After an update to HANA Studio everything is broken. All I have are warnings in the JAVA code, but when I try to run the apps as a web app preview, I get nothing.
Problem 1
Undefined attribute name (role). index.html /CC/WebContent line 23 HTML Problem
Problem 2
The local variable dialog may not have been initialized FormAuthentication.js /CC/WebContent/Authentication line 79 JavaScript Problem
Any ideas?
SAP HANA Studio
Version: 1.0.68
Build id: 201310151624 384084
ABAP Connectivity And Integration Development Tools (Developer Edition) 1.21.1
ABAP Core Development Tools (Developer Edition) 2.28.1
ABAP Development Tools for SAP HANA (Developer Edition) 2.28.1
ABAP Development Tools for Web Dynpro (Developer Edition) 1.21.1
OData Modeler and Tools Core for SAP (GWPA, Developer Edition) 1.1.1
OData Toolkit for Java Platform, Standard Edition (GWPA, Developer Edition) 1.1.1
Toolkit for Android (GWPA, Developer Edition) 1.1.2
Toolkit for HTML5 (GWPA, Developer Edition) 1.1.1
Toolkit for Integration Gateway (GWPA, Developer Edition) 1.1.1
Toolkit for iOS (GWPA, Developer Edition) 1.1.1
Toolkit for PHP (GWPA, Developer Edition) 1.1.1I have been using GWPA to create test front-ends for my GW services in HANA Studio for months. From workflow to simple services exposing cost centers, etc. After an update to HANA Studio everything is broken. All I have are warnings in the JAVA code, but when I try to run the apps as a web app preview, I get nothing.
Problem 1
Undefined attribute name (role). index.html /CC/WebContent line 23 HTML Problem
Problem 2
The local variable dialog may not have been initialized FormAuthentication.js /CC/WebContent/Authentication line 79 JavaScript Problem
Any ideas?
SAP HANA Studio
Version: 1.0.68
Build id: 201310151624 384084
ABAP Connectivity And Integration Development Tools (Developer Edition) 1.21.1
ABAP Core Development Tools (Developer Edition) 2.28.1
ABAP Development Tools for SAP HANA (Developer Edition) 2.28.1
ABAP Development Tools for Web Dynpro (Developer Edition) 1.21.1
OData Modeler and Tools Core for SAP (GWPA, Developer Edition) 1.1.1
OData Toolkit for Java Platform, Standard Edition (GWPA, Developer Edition) 1.1.1
Toolkit for Android (GWPA, Developer Edition) 1.1.2
Toolkit for HTML5 (GWPA, Developer Edition) 1.1.1
Toolkit for Integration Gateway (GWPA, Developer Edition) 1.1.1
Toolkit for iOS (GWPA, Developer Edition) 1.1.1
Toolkit for PHP (GWPA, Developer Edition) 1.1.1 -
Debugger not working for BSP application
Hi All,
I have 4.6C sap installation and the debugger is not working for BSP Application even when i hard code the break points.
Can anyone help me on this issue.
Thanks and Regards
ShilpaHi Shilpa,
How many number of sessions are open ? If there are already six sessions open and then you try and get the debugger, it will not start, and you won't be able to catch that error also...!
Other than that there is no possibility that the debugger doesn't start, unless ofcourse, the logic doesn't reach the debugger point....
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna. -
I'm relatively new to iPhone development and I have been working on adding onto the iPhone web app "National Parks" Dashcode example and I have gotten to a point where I want to use the debugger to look at some javascript variables.
So, I set some breakpoints and I run the simulator, but the simulator never pauses. (I know that part of code is running because some alert()'s are showing.) I've tried to Pause execution by selecting Debug > Pause and the Run Log says "Pausing at the next opportunity," but it never pauses.
I'm not getting any useful information in the debugger. I tried View > Stackframe while the simulator was running, but its blank and doesn't show anything.
Is there something I missed? Some sort of setup to make this work?
I am using:
MacBook Pro with Mac OS X v 10.6.4
Dashcode v 3.0.1 (330)
iPhone Simulator v 4.0 (211.1)
PS. I found a similar problem on this forum, but it was from last year. http://discussions.apple.com/message.jspa?messageID=9043258
Their problem was with a new SDK - and solutions were to install an older SDK or to choose Debug > Run Settings > Simulator - iPhone OS 2.2 instead of iPhone OS 2.2.1. I have 2 options in Run Settings. One is iPhone OS 3.2 and iPhone OS 4.0. I tried choosing 3.2 but the Simulator launched an iPad in simulation, but the breakpoints still didn't work...Same config and same thing for me. Debugger does not work.
The console application leaves two messages :
17/08/10 22:24:52 UIKitApplication:com.apple.mobilesafari[0x6088][6129] objc[6129]: found old-ABI metadata in image /Developer/Applications/Dashcode.app/Contents/Resources/DashcodeClient.app/Cont ents/Frameworks/CayenneClientDebugger.framework/CayenneClientDebugger !
And another one :
17/08/10 22:24:52 MobileSafari[6129] Couldn't load debugger
As a workaround I debug on a Safari product and it works. Although I can't debug mouse gesture. -
Debugging not working in weblogic portal
When I am running my portal app built on weblogic portal 8.1, its throwing an error cannot start debugger. App might not be deployed properly.
I have redeployed 2-3 times, and its running also fine, but debugger is not working.
when the app domain starts few exceptions are thrown like,
primary key voilated,
jms connection pool could not connect
Can this be the reason?well, from a debugging perspective, the application errors should not prevent a debugger from attaching to the VM. Can you be more specific about when you say the debugger is not starting?
Thanks
Mike -
Eclipse-cdt debugger not working properly
I have the latest versions of eclipse, eclipse-cdt, and gdb via pacman, and when I go to debug a simple program in Eclipse, I get the following errors:
Stopped due to shared library event
Stopped due to shared library event
Single stepping until exit from function __libc_start_main,
which has no line number information.
mi_cmd_stack_list_frames: No stack.
The debugging functions properly (for the most part, I noticed that I can't step into the standard C++ headers, though), but after the debug ends it displays the above error. Any idea what's wrong? The relevant part of the gdb trace is:
[1,139,908,307,875] 5-gdb-show prompt
[1,139,908,307,876] (gdb)
[1,139,908,307,877] 5^done,value="(gdb) "
[1,139,908,307,883] 6-stack-list-frames
[1,139,908,307,883] (gdb)
[1,139,908,307,884] &"mi_cmd_stack_list_frames: No stack.n"
[1,139,908,307,886] 6^error,msg="mi_cmd_stack_list_frames: No stack."
[1,139,908,308,072] 7-gdb-set auto-solib-add on
[1,139,908,308,073] (gdb)
[1,139,908,308,074] 7^done
[1,139,908,328,397] ~"Single stepping until exit from function __libc_start_main, nwhich has no lin
e number information.n"
[1,139,908,328,437] 112*stopped,reason="exited-normally"
[1,139,908,328,582] 113-gdb-exit
[1,139,908,328,608] (gdb)Originally posted by: ccvural.cerenbilgisayar.com.tr
nexus yazmış:
> Hi:
>
> I am currently trying to debug a multi-threaded program writtten in C++,
> with CDT and Eclipse. But, debugger seems to be not working properly.
> Since, debugger sometimes stops in different lines that are not actually
> breakpoints. And also debugger turns back in the code, miss some
> breakpoints.
> Below, I give information about what I use for developing:
>
> Eclipse 3.1.1
> Plug-in: CDT 3.0.2
> gcc (GCC) 3.4.4
>
> Debugger: GDB debugger Shared Libraries: None
> Protocol: mi
>
> Thanks...
>
What is your Operating System. Linux , Windows ?
If it's windows cygwin is better than MinGW while debugging, especiallly
with multithreading
Regards
CC Vural -
System.out not working on eclipse
Greetings...
I am no longer a newbie on Java, but I have been facing an issue lately that I have been unable to resolve myself, even though it seems to be something so silly.
I have been using eclipse for development, and by developing a simple "Just to practice" code I have found myself unable to use System class or any of its methods at a certain point. See the code below:
package one;
import java.util.Scanner;
public ClassOne {
public static void main (String args[]){
Scanner reader = new Scanner(System.in); /*Works just fine here*/
int x = 0;
System.out.println("Type in the number of objects expected"); /*Does not work at all, like if System was something I could not use at all. Not an identifier */
Scanner readertwo = new Scanner(System.in); /*System does not work here either*/
}Even if I rewrite the code after that, by erasing the import statement and all other System references in the code, System does not work again.
If anybody has ever faced the same issue and knows what I am doing wrong and what I can do to fix it, I'd really be grateful.
Thanks to all, and happy 2009.
Santana TSantana_Thiago wrote:
It works on NetBeans.
On eclipse I get the following error:
ERROR: JDWP Unable to get JNI 1.2 Environment, jvm->GetEnv() return code = -2+
*JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]*+
The funniest thing is that if copy and paste the code from somewhere else into eclipse it works. What a drag!!!!
Thank you.
Santana TNever seen that error but it sounds to me that your Eclipse installation is screwed up! -
Auto-Deployment is not working in Eclipse - Weblogic
I have created weblogic server instance in Eclipse.Then, I have added one project into weblogic server by using "Add/Remove Projects" menu.After I start the server , I logged into admin console and checked the deployments link. I am not finding the project listed in the list.I have selected option "Run stand alone web module directly from work space" in web logic server configuration window in eclipse.
I am using Eclipse 3.3 and weblogic 10.0.
I have no idea, why auto-deployment is not working.
I would appreciate your help on this regard.I have contacted Eclipse Support, they have asked me to contact BEA team.
Thanks,
Prakash.AHi Prakash,
The "Run standalone web module from workspace" doesn't publish the application to the server (instead the app is deployed to a temp location).
This is mainly to help test the app during the development stages. If your app is complete and would like to publish to the server then you might want to try the following option
- In Server View, double click on the configuration to launch Overview
- Select "Copy stand-alone web module into separate deployment folder"
- Save the configuration
- Start the server
The application would be deployed to the server as a WAR file. -
Flashbuilder 4.7 and Windows 8.1 - Debugger not working
I have recently upgraded to Windows 8.1 and am having problems getting both the debugger and the run to work for an AIR Mobile application in Flashbuilder 8.1.
In Flashbuilder the error message is 'Process Terminated unexpectedly' with the adl.ex launch command below it.
If I run the adl from the command prompt, the error message states 'Adobe AIR could not be found'.
However, if I replace the -runtime with an AIR download i.e. 3.9 that does not include the Flashbuilder Flex components, then the AIR app fires up correctly. I don't think it is a port problem as I tried with the firewall turned off and got the same results.
Is this a known problem with Windows 8.1? Has anyone else seen this issue?
ThanksSo, since Adobe is MIA and are giving even more arguments to the late Steve Job about the sory state of their player, here is what I found so far.
I was able to uninstall/remove the current player. Keep in mine that I am still trying to install the debug version. Also, I am not sure if all the steps are required as many attempts, trial and errors have been made. This is on Windows 8.1 - 64bit
Downloaded the uninstaller
http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
Exit all browsers
Run the uninstaller
Take ownership of the folder and all sub-folders and files from...
C:\Windows\SysWOW64\Macromed\Flash
Right-click Flash folder, select properties, Security tab, Advanced button
Next to owner, select Change link
Type you user name and select Ok
Make sure to select the check box for "Replace all children..."
Give yourself full access to the same folder and files
Right-click Flash folder, select properties, select Security tab
Select Edit button
Select Add button
Type you user name and select Ok
Select full control check box
Select Ok
Now you should be able to rename the folder to "FlashOld".
Restart the computer
Test the player
With IE, go to...
http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
This should confirm that the player is gone.
Reinstall
I tried to install the Windows 8.1 x64 debugger from
http://go.microsoft.com/fwlink/?LinkId=325411 but I keep getting the same message saying that MS IE will take care of the updates (Great, tx!!...not).
I tried
http://download.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_ax_debug.exe
and it appears to install without issues.
It created a Flash folder right next to the old one.
I restarted the computer but going to the test page shows that it does not work.
Still stuck...chime in anytime Adobe!! -
I have recently installed SQL Server 2008. When I try to execute a query against an Access database, I receive this debugging error:
"Unable to start Transact-SQL debugger. The Transact-SQL debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors)"
Nor will the query execute; I get a transport-level error 0. Any thoughts?Hi Davidmhjr,
>>Unable to start the Transact-SQL Debugger. The Transact-SQL Debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors).
Have you tried to restart the server once you have installed SQL Server 2008? As Naomi N mentioned please check the version of SQL Server you are using.
If you tried to connect to SQL Server 2005 from SQL Server 2008 SSMS, you would not be able to debug and get this error, it happens because T-SQL debugger includes both server-side and client-side components. The server-side debugger components are installed
with each instance of the SQL Server 2008 Database Engine. The client-side components are installed when you install the SQL Server 2008 client-side tools.
So it works with SQL Server 2008 only so far. Another way is you can triy to use SQL Server 2005 SSMS to connect to SQL Server 2005.
More information about configuration requirement to run T-SQL debugger as below, please refer:
There are no configuration requirements to run the Transact-SQL debugger when SQL Server Management Studio is running on the same computer as the instance of the SQL Server Database Engine. However, to run the Transact-SQL debugger when SQL Server Management
Studio is running on a different computer from the instance of the Database Engine, you must enable program and port exceptions by using the Windows Firewall Control Panel application on both computers.
On the computer that is running the instance of the Database Engine, in Windows Firewall, specify the following information:
•Add TCP port 135 to the exceptions list.
•Add the program sqlservr.exe to the exceptions list. By default, sqlservr.exe is installed in C:\Program Files\Microsoft SQL Server\MSSQL10.InstanceName\MSSQL\Binn, where InstanceName is MSSQLSERVER for the default instance, and the instance name for
any named instance.
•If the domain policy requires network communications to be done through IPsec, you must also add UDP port 4500 and UDP port 500 to the exception list.
On the computer that is running SQL Server Management Studio, in Windows Firewall, specify the following information:
•Add TCP port 135 to the exceptions list.
•Add program ssms.exe (SQL Server Management Studio) to the exceptions list. By default, ssms.exe is installed in C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE.
Hope it is helpful.
Regards, Amber zhang -
Comm.jar not working in Applet but works in Eclipse
Hello,
Please help me to read serial port data from Java Applet.
The below code working well and get data from weighing machine when we run in eclipse(Run Applet). But it now working when we use class file in Applet.
I think its security issue, but i still could not understand what we need to do.
I put the JOptionPane.showDialog and found that the code is crashing in line CommPortIdentifier.getPortIdentifiers(); (Not understood why try catch not working.)
I am using in Windows 7 environment.
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.*;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Enumeration;
import java.util.logging.Logger;
import javax.comm.*;
import javax.swing.*;
public class SimpleApplet extends JApplet {
public void init() {
JButton button = new JButton("Click me!");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JOptionPane.showMessageDialog(SimpleApplet.this, "hello");
JOptionPane.showMessageDialog(SimpleApplet.this, Getdata());
add(button, BorderLayout.CENTER);
setBackground(Color.GRAY);
public String Getdata()
try
String drivername = "com.sun.comm.Win32Driver";
try
CommDriver driver = (CommDriver) Class.forName(drivername).newInstance();
driver.initialize();
catch (Exception e) { //just do nothing, it doesn't really matter
Enumeration portList=null;
CommPortIdentifier portId;
SerialPort serialPort;
OutputStream outputStream;
try
portList = CommPortIdentifier.getPortIdentifiers();
}catch(Exception ex)
JOptionPane.showMessageDialog(SimpleApplet.this, "erorr:" + ex.getStackTrace().toString());
JOptionPane.showMessageDialog(SimpleApplet.this, "get port lsit");
while(portList.hasMoreElements())
portId = (CommPortIdentifier) portList.nextElement();
if(portId.getPortType()== CommPortIdentifier.PORT_SERIAL)
if(portId.getName().equals("COM1"))
try
serialPort = (SerialPort) portId.open("WeightMachine",200);
serialPort.setSerialPortParams(1200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);
outputStream = serialPort.getOutputStream();
InputStream mInputFromPort = serialPort.getInputStream();
outputStream.write("W".getBytes());
outputStream.flush();
Thread.sleep(500);
byte mBytesIn [] = new byte[20];
mInputFromPort.read(mBytesIn);
//mInputFromPort.read(mBytesIn);
String value = new String(mBytesIn);
mInputFromPort.close();
serialPort.close();
return value.replace("+00", "").replace(" Kg", "");
}catch(Exception ex)
return ex.getMessage();
}catch(Exception ex)
JOptionPane.showMessageDialog(SimpleApplet.this, "erorr last:" + ex.getStackTrace().toString());
return "Not found";
Thanks in advance.
Avinash959817 wrote:EJP wrote:959817 wrote:
it now working when we use class file in Applet.Define 'not working'.But when i run applet from browser from same machine its not working.That's not an answer. That's just a vague and pointless restatement of the original vague and pointless statement that I asked you to clarify.
When you take your car to a mechanic, do you just tell him it's 'not working'?
Maybe you are looking for
-
Gl, vendor and customer balances in program
I need to upload GL, Vendor and customer balances in single program(bapi or normal recording also.). If any body is having code for this and any thread is available please help me .. urgent... Thanks inadvance praveen
-
I get how to make a form. Making one look nice is a different matter. Are there hot keys for making multiple text fields at once? Is there a way to select multiple text fields and resize them as a group so they all match in layout and positioning? Th
-
when i start downloading a CD purchase it downloads approx 3 to 4 songs then just stops says downloading waited a hour still downloading had to force quit iTunes then reopen to complete download keeps doing this every time i purchase a cd any ideas ?
-
Supporting Problem After Effects CC do not support Quadro K2100M
I am a user of After Effects CC, i just bought a laptop with Quadro K2100, but surprisingly find out that AE can't figure the video card out. it can't find any cuda and even it can't use the card doing ray-tracing how can i deal with it ?
-
Descriptive flex feild ...
Hi, Apps - 12.1.3 DB 11gR1.. If Receipt method is PDC Details following feild must appear in the DFF Sales Person:ABC Receipt Book Number:123 Receipt leaf Number:456 PDC Cheque : Y P D C Maturity Date:18-JAN-2012 If Receipt method is not PDC Details