TEXT_CONVERT_XLS_TO_SAP getting error, need help!
Good day, everyone!
I am using FM TEXT_CONVERT_XLS_TO_SAP to read in an Excel file. However, I am getting an error, and the error information I'm displaying isn't helping me much. I'm using the widely-found sample code for this FM that is on this forum. Here's my error routine after the FM call:
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
The problem is that this information isn't helpful to me. When I run it, I get this:
"Error during conversion - field type conflict (see long text)"
There are values in the sy-msgv fields, but aside from one value being a value from my Excel spreadsheet, I don't know what the others mean. I've searched and can find no documentation for this FM. Also, I don't know how to "see long text."
Can anyone help? Points awarded for all helpful answers.
Thanks!!
Hi venkat,
befor i kept comments for exceptions so i got that error
now i used
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = p_FILE2
TABLES
i_tab_converted_data = i_spreadsheet[] "ACTUAL DATA
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF SY-SUBRC = 0.
ENDIF.
OK, I got the first item to upload to bid, but not the remaining.
Bid Invitation
Item
Basic Data
1
D
I
1
Normal
1
Material
1E+09
BATTERY L
00/00/00
0:00:00
00/00/00
00/00/00
*00
EA
USD
1E+09
Bid Invitation
Item
Basic Data
2
D
I
2
Normal
1
Material
BATTERY F
00/00/00
0:00:00
00/00/00
00/00/00
*00
EA
USD
Bid Invitation
Item
Basic Data
3
D
I
3
Normal
1
Material
Cable t89
00/00/00
0:00:00
00/00/00
00/00/00
*00
EA
USD
Edited by: sukruthi raj on Mar 12, 2008 8:37 PM
Similar Messages
-
Insert object (pdf) in excel getting error. need help
When we try to insert a PDF file as an object we get the error. could not load object.
This is what we are doing
insert - object - create from file - display as icon.
We select the file and get the error.
We are on a windows 7 64-bit system with Office 2010 but project 2013 and Acrobat reader XI.
Any Ideas as to why?Hi,
Where did you get the PDF file from ? Did you create it yourself? What software did you use to create the PDF file?
Does this issue happen the all PDF files? Please try to save a Microsoft Word document as PDF file and then test this issue with this PDF file again.
In addition, please try to temporarily uninstall the Adobe Reader and then test the issue again. Also make sure you have the latest adobe reader installed.
Regards,
Steve Fan
TechNet Community Support -
Acrobat Error - need help! - Acrobat 9 Pro
When I try to open an acrobat files my it trys to Open EVERY acrobat file on my computer and does so until I get the following message
"There was an error opening this document. The maximum number of files are already open. No other files can be opened or printed until some are closed"
Then I have to force quit.
This just started happending a few months ago
I am on a Mac OSX
I need help! Any suggestions?
DebbieI have a 10.5.8
I am not that technical so not sure what you mean about applejack etc.
Thanks for helping!
Debbie
Date: Sat, 10 Apr 2010 13:03:28 -0600
From: [email protected]
To: [email protected]
Subject: Acrobat Error - need help! - Acrobat 9 Pro
What version of OS X? Some people have luck by clearing their caches. This can be done with Applejack in 10.5. Onyx will work in SL.
> -
Keep getting error installation helper has stopped working for readstep2
keep getting error installation helper has stopped working for readstep2
attach a screenshot of that error message, FAQ: How do I capture and post a screen shot or... | Adobe Community
-
I am getting error (14). help!
I am trying to update the software and sync both my iPad and iPhone. I am getting error message 14. It says that my iPad needs to be restored to fatory settings but then error 14 pops up when I try. The same thing happened with my iPhone. Please help!!!!
That error number points to a possible USB issue.
Click 14 > iOS: Resolving update and restore alert messages -
Dreamweaver CS3 errors Need Help!
In Dreamweaver CS3 I keep getting error messages like
"EffectAppearFade", "_beforeSave.htm is not defined" when I close
the document, When I try to add a table it says I need to turn on
invisibles even though it's already on. I also can't preview it in
a browser either. All of these things just started up one day and
continue to pleage me. your help would be much appreciated.See if this helps:
http://www.adobe.com/go/tn_19105
Ken Ford
Fordwebs, LLC
Adobe Community Expert - Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Adobe Certified Expert - ColdFusion 8
http://www.fordwebs.com
http://www.cfnoob.com
"Mon_G" <[email protected]> wrote in message
news:gg1gvo$8gf$[email protected]..
> In Dreamweaver CS3 I keep getting error messages like
"EffectAppearFade",
> "_beforeSave.htm is not defined" when I close the
document, When I try to add a
> table it says I need to turn on invisibles even though
it's already on. I also
> can't preview it in a browser either. All of these
things just started up one
> day and continue to pleage me. your help would be much
appreciated.
> -
Urgent! - unexpected error -- need help!!
Hi, all. I'm a photographer on a tight deadline and need to upload pictures to my lab. The program uses java and it's been working fine for months since I first started using it. Now, all of the sudden, when I try to upload pictures online to my lab and java tries to run, I get knocked off of my online connection. Java just won't connect me any longer. I get error messages on my desktop and I pasted it below. Can anyone give any advice? I so badly need to be able to get my orders uploaded to my lab!! Thank you in advance. Here's the error message:
An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0bd09bc7, pid=2308, tid=2832
# Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode, sharing)
# Problematic frame:
# C 0x0bd09bc7
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x09735000): JavaThread "AWT-Windows" daemon [_thread_in_native, id=2832]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000010
Registers:
EAX=0x00000010, EBX=0x00000000, ECX=0x00000000, EDX=0x0000000c
ESP=0x0a23f668, EBP=0x0a23f670, ESI=0x0a23f6d4, EDI=0x0a23f684
EIP=0x0bd09bc7, EFLAGS=0x00010202
Top of Stack: (sp=0x0a23f668)
0x0a23f668: 0a23f6d4 00000000 0a23f6c0 0bd6d5bf
0x0a23f678: 00030356 00000000 00000102 0a23f6d4
0x0a23f688: 0a23f880 00000000 00000000 00000000
0x0a23f698: 0000000c 0bcf6840 00000001 2110fb50
0x0a23f6a8: 0a23f684 0a23f28c 0a23f788 0bd5caf0
0x0a23f6b8: 0c77b1a8 ffffffff 0a23f704 68057223
0x0a23f6c8: 00030356 00000000 00000102 0a23f76c
0x0a23f6d8: 680571c0 2b294bc0 074e01a5 0a23f854
Instructions: (pc=0x0bd09bc7)
0x0bd09bb7: c0 96 0c 0b c0 58 74 08 8b 00 03 05 cc c0 96 0c
0x0bd09bc7: 8b 00 0b c0 75 05 e8 7e 6b fe ff 89 45 fc 8b 75I was also facing this problem for the last 2 days. Today i removed all the version of JRE installed on my system from Control Panel & installed Java Platfor, Standard Edition 6 Version 1.6.0. Now my applications are working perfectly.
thanks
Sooraj -
Exception error, Need Help!
Need help!
Why my java program work well under C:\, but can't under D:\Java today? It worked well even yesterday. I had tried the "Hello World", it can not work under D:\Java either.
when I enter the "java d:\java\Hello" order(after javac of cause), those displays are here:
Exception in thread "main" java.lang.NoClassDefFoundError: d:\java\Hello
Caused by: java.lang.ClassNotFoundException:d:\java\Hello
at java.net.URLClassLoader$1.run<URLClassLoader.java:200>
at java.security.AccessController.doPrivileged<Native Method>
at java.net.URLClassLoader.findClass<URLClassLoader.java:188>
at java.lang.ClassLoader.loadClass<ClassLoader.java:306>
at sun.misc.Launcher$AppClassLoader.loadClass<Launcher.java:276>
at java.lang.ClassLoader.loadClass<ClassLoader.java:251>
at java.lang.ClassLoader.loadClassInternal<ClassLoader.java:319>
The Hello.java has no problem,and it worked well even yesterday!
I just don't know what had happened.
Someone who can help me please reply or email at [email protected]
Thank you!The simple "Hello World" can work under Editplus, but can't under DOS.
The error appears as the same. I don't know what I should do, could you tell me please?
Thank you!First test whether environment variables had been set properlyor not
To test :-
1) Open cmd
2) type java
3) If it runs that means you have set it properly
Then go to your program directory i.e d:\java\
and type
javac Hello.java //to compile it and then
java Hello //To run it -
Hi Guys,
I am declaring a queue that holds Node objects like this but i get errors. All these two declarations give me errors.
Queue queue = new Queue();
Queue<Node> queue = new Queue<Node>();I have tried both but says can't instantiate the type Queue.
What must i do?
thanksraychen already gave you an example, and I gave you a link to the API that lists the different options you can use. It's up to you to determine which is best for your needs.
Hint:
List<String> list = new List<String>(); //not allowed
List<String> list = new ArrayList<String>(); //allowed -
ORA-29278: SMTP transient error - Need Help
I am getting below error from my code block though i am not calling UTL_SMTP package.
It is confusing to me and I am not getting how to debug this.
Please help me.
My Orable DB Version - Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
Error Message
ERROR: -29278 ORA-29278: SMTP transient error: 421 Service not
available
ORA-06512: at "SYS.UTL_SMTP", line 20
ORA-06512: at "SYS.UTL_SMTP",
line 96
ORA-06512: at "SYS.UTL_SMTP", line 138
ORA-06512: at "W_ADM_DW.DW
PL/SQL procedure successfully completed.
{code}
*Pseudo-code of my code block*
{code}
VARIABLE Ret number
set serveroutput on size 20000
show serveroutput
DECLARE
--Local variable declaration
BEGIN
select count(*)
into v_count
from <Table_Name>
where <Column_Name>=<YYYYMM>;
if v_count > 0 then
SELECT PARTITION_NAME
INTO v_partition_name
FROM ALL_TAB_PARTITIONS
WHERE TABLE_NAME='<Table_Name>'
AND INSTR(PARTITION_NAME,<YYYYMM>,1,1)<>0;
v_sql := utl_particion.truncate_partition('&3','<Table_Name>', v_partition_name);
if v_sql!=0 then
raise_application_error(-20088,'Error in Truncate partition');
:Ret := 2;
end if;
commit;
end if;
v_sql:='alter session enable resumable timeout 72000 name ''<Table_Name>''';
execute immediate v_sql;
v_sql := ' INSERT /*+ APPEND*/ INTO '<Table_Name>'';
v_sql := v_sql || ' ( <column_name1>, ';
v_sql := v_sql || ' <column_name2>, ';
v_sql := v_sql || ' <column_name3>, ';
v_sql := v_sql || ' <column_name4>, ';
v_sql := v_sql || ' ) ';
v_sql := v_sql || ' SELECT /*+ PARALLEL(<Source_Table_Name>,6)*/';
v_sql := v_sql || ' <column_name1>, ';
v_sql := v_sql || ' <column_name2>, ';
v_sql := v_sql || ' <column_name3>, ';
v_sql := v_sql || ' <column_name4>, ';
v_sql := v_sql || ' FROM <Source_Table_Name> WHERE <column_name> BETWEEN ' || v_frm_date || ' AND ' || v_to_date;
execute immediate v_sql;
v_total:=SQL%ROWCOUNT;
commit;
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
dbms_output.put_line ('ERROR: '|| SQLCODE || ' ' || substr(SQLERRM,1,200));
:Ret := 2;
END;
{code}Thanks for identifying utl_particionpackage. I tried to check the code of this package, but it has wrapped, so i cannot see the code.
But one thing i have observed - If utl_particion.truncate_partition internally calling UTL_SMTP package and I am getting error from this package then this will catch by below code -
v_sql := utl_particion.truncate_partition('&3','<Table_Name>', v_partition_name);
if v_sql!=0 then
raise_application_error(-20088,'Error in Truncate partition');
:Ret := 2;
end if;and after that it will catch by user define error exception block (This i did not mention in my earlier post)
WHEN excepcion_ctrl THEN
dbms_output.put_line (WRN: '|| substr(SQLERRM,4,200));
:Ret:=0;But it has catch by when others exception -
I think inside utl_particion.truncate_partition procedure has proper exception handling. So when some error will occur it will return '0'. If there is no proper exception handling then we can assume the error will propagate to When Others Exception block.
Please tell me my understanding is correct or not. -
General exception error need help!
Experts,
i am facing this problem. i connect to the net by proxy (through office Lan). none of the java applets work for me. Need help
Java Plug-in 1.5.0_08
Using JRE version 1.5.0_08 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\mkrishna
network: Loading user-defined proxy configuration ...
network: Done.
network: Loading direct proxy configuration ...
network: Done.
network: Proxy Configuration: No proxy
basic: Cache is enabled
basic: Location: C:\Documents and Settings\mkrishna\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
basic: Maximum size: unlimited
basic: Compression level: 1
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=1
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=2
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=3
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@15212bc
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@97a560
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1ea5671
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: httpCompression = true
network: Connecting http://150.101.78.39/dsmapp/catalog/classes/liste.jar with proxy=DIRECT
network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris.class with proxy=DIRECT
network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris.class with proxy=DIRECT
network: Connecting http://150.101.78.39/dsmapp/catalog/classes/Outline.class with proxy=DIRECT
network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris/class.class with proxy=DIRECT
network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris/class.class with proxy=DIRECT
load: class ZoneFavoris.class not found.
java.lang.ClassNotFoundException: ZoneFavoris.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: ZoneFavoris.class
java.lang.ClassNotFoundException: ZoneFavoris.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Modality pushed
basic: Modality pushed
basic: Modality pushed
basic: Modality popped
basic: Modality popped
basic: Modality popped
basic: Modality pushed
basic: Modality pushed
basic: Modality pushed
basic: Modality popped
basic: Modality popped
basic: Modality popped
network: Connecting http://150.101.78.39/dsmapp/catalog/classes/Outline/class.class with proxy=DIRECT
load: class ZoneFavoris.class not found.
java.lang.ClassNotFoundException: ZoneFavoris.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: ZoneFavoris.class
java.lang.ClassNotFoundException: ZoneFavoris.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Modality pushed
basic: Modality pushed
basic: Modality pushed
basic: Modality popped
basic: Modality popped
basic: Modality popped
load: class Outline.class not found.
java.lang.ClassNotFoundException: Outline.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: Outline.class
java.lang.ClassNotFoundException: Outline.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Modality pushed
basic: Modality pushed
basic: Modality pushed
basic: Modality popped
basic: Modality popped
basic: Modality poppedHi
I think you need to configure proxy for the JRE
If you are using windows Go to control panel , you will find an icon called java plugin. if you have installed multiple JRE you will find multiple icons . Select the one which is configured to browser.
You will find a proxies tab in that window , add the proxy details there
Hope this helps you
Vijay -
When i am trying to type my licence key i get an error need help quick!
when i am typing my serial number into adobe photoshop cs6 i get an error can someone other get me an other key please
Nope, sorry, not on a user to user help forum.
I hope you haven't waited for this response before taking other action. You'll need to call Adobe customer support on the telephone to resolve licensing issues.
Anticipating your next question, the phone number is available from Adobe's web site. Look at each page and imagine where they might have hidden it. Hint: Start with MENU.
-Noel -
Getting this error, need help: No Name Available via DNS
Hello,
i was wondering if someone can help me out. i m being getting this error message xserver servermgrd: servermgr_dns: no name available via DNS for 192.168.0.XXX . The server is set up stand alone server, only being use to host Filemaker Pro Databases. i type hostname to see what it show me, it show me fmserver.local. the internal ip assign to it, it is static and the WAN IP is also static.
any help would be appreciate it.
thank you
victorif you change your network interface's DNS to point to yourself, then you should add your isp's nameservers to the "fowarders" options in your /etc/named.conf file, so your nameserver, when it can't find a local or cached record to answer the query, can still use your ISPs nameserver to lookup the information...
Dual G4 colocated xserve Mac OS X (10.4.2) -
Getting exception error - need help resolving please
I am getting the following exception when I try running a short program that user the Scanner object:
Enter a number in feet: Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:817)
at java.util.Scanner.next(Scanner.java:1431)
at java.util.Scanner.nextDouble(Scanner.java:2335)
at FeetInchConvert.main(FeetInchConvert.java:27)
Here's the program I am running (which compiled w/o errors):
import java.util.*;
public class FeetInchConvert
// Prompt for feet and convert to inches.
// Next, prompt for inches and convert to feet.
public static void main(String[] args)
final double INCHES_IN_FEET = 12.0;
double feet, inches;
int wholeInches;
Scanner ourScanner = new Scanner(System.in);
System.out.print("Enter a number in feet: ");
feet = ourScanner.nextDouble();
inches = feet * INCHES_IN_FEET;
System.out.println("\n" + feet + " feet is " +
inches + " inches.\n");
System.out.print("Now, enter a whole number in inches: ");
wholeInches = ourScanner.nextInt();
feet = wholeInches / INCHES_IN_FEET;
System.out.println("\n" + wholeInches + " inches is " +
feet + " feet.");
I have installed Java 5.0 on my Windows XP Pro system. I'm thinking that something might be wrong with my configuration. I am using TextPad for development.
Can someone please help me out on this one?
Thank you!
MelissaThis is the configuration that works for me:
Click Configure
Click Preferences
Click Tools
Click Run Java Application
Command should be java.exe
Parameters should be $BaseName
Initial folder should be $FileDir
All of the checkboxes are unchecked.
Mark
Maybe you are looking for
-
Cannot delete photos from panorama folder
Even though I have a 5c, I never tried the panorama feature until after upgrading to iOS 8. After taking the panorama, I wasn't pleased with it, and deleted it. The photo was moved to the new "Recently Deleted" folder, but also to the "Panoramas" fol
-
After updating to iPhoto 6, thumbs and photos are missing
I just updated from iphoto 5 to 6, installed off the iLife cd. iPhoto is displaying a grey screen with dashed boxes (that show the jpg names of the photos). When clicked, the enlarged photos show an exclamation mark"!" I have trashed the program and
-
HT1711 how can I get album tracks that do not properly download?
I lost two tracks during download. How can I get them without rebuying?
-
SQL Server 2005 DB as a source system connection
Dear all, We are planning to connect SQL server 2005 DB as one of the source system connection in RSA1. Please let me know how to do and if procedure/steps doc for the same. please do the needful. Thanks in advance. Regards, Mohankumar.G
-
Iweb quit unexpectedly and not opening at all
I have tried the following but still no success; any ideas? Try the following: 1 - close iWeb. 2 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your User/Library/Preferences folder. 3 - go to your User/Library/Caches/com.app