Error in converting the c/c++ file to java in JNI

hi all
i am new to jni in java programming.
i[b] had success fully compiled the java class i.e.
Sample1.java--->Sample1.class--->Sample1.h
but when to
Sample1.c-->Sample1.dll
as shown below
in the console i get this error
C:\jdk1.4\bin>cl -Ic:\jdk\include -Ic:\jdk\include\win32 -LD Sample1.c -FeSample
1.dll
'cl' is not recognized as an internal or external command,
operable program or batch file.

i had search whole website through google for curl and java but no help as required.
hey if please do not mind, i need it urgent, i am asking you my another problem in this thread and is related:
curl,libcurl and java api.
i compiled all the lib curl and imported into my code and code is as follows:
import java.io.*;
import java.net.*;
import java.util.*;
import java.sql.*;
import org.curl.*;
import java.lang.*;
class test
     public void curl_connect()
          Runtime     rt=Runtime.getRuntime();
          String ls_str="";
          try
               String urlpath="www.yahoo.com";                    
               String CreateProcess ="";               
               System.out.println("inside cURL process");               
               CreateProcess = "c:\\curl\\curl.exe https://" + urlpath;
               Process pr = rt.exec(CreateProcess);
               InputStream stderr = pr.getErrorStream();
               InputStreamReader isr = new InputStreamReader(stderr);
               BufferedReader br =new BufferedReader(isr);
               String line = null;
               while ((line = br.readLine())!= null )
                    System.out.println(line);
               CurlGlue cg = new CurlGlue();
               cg.setopt(CURL.OPT_WRITEFUNCTION, 2);
               cg.setopt(CURL.OPT_VERBOSE, 3);
               cg.setopt(CURL.OPT_FOLLOWLOCATION, 1);
               cg.setopt(CURL.OPT_SSL_VERIFYPEER, 0);
               cg.setopt(CURL.OPT_SSL_VERIFYHOST, 0);
               cg.setopt(CURL.OPT_SSLCERTTYPE, "PEM");
               cg.setopt(CURL.OPT_SSLVERSION, 3);
               cg.setopt(CURL.OPT_HTTPPOST, 1);
               int result = cg.setopt(CURL.OPT_URL,CreateProcess );
               // post method
               cg.setopt(CURL.OPT_POST, 1);
               // IS THIS THE RIGHT WAY TO SET SIMPLE POST DATA?
               cg.setopt(CURL.OPT_POSTFIELDS, "some post data");
               // IS THIS THE RIGHT WAY TO SET COOKIE?
               String cookieString= "";
               if(cookieString != null)
               cg.setopt(CURL.OPT_COOKIE, cookieString);
               cg.perform();
          catch(Exception ee)
               System.out.println("error traced");
               ee.printStackTrace();
class test1
     public static void main(String args[])
          try
               test t12= new test();
               t12.curl_connect();
          catch(Exception ee)
               ee.printStackTrace();
}                    can you tell me how to do further
curl is used to fetch a page from the source website to destination website.
when i run this api on my machine then message appeare is failed to link
at the end i am getting this output
<pre>
inside cURL process
Libraries loaded.
* Closing connection #0
Press any key to continue...
</pre>
Message was edited by:
centurions

Similar Messages

  • Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?

    Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?? Thanks, Jörg

    Hi Jorg ,
    Are you trying to reduce the file size with the "Reduced size PDF" in the save as other option.
    Give it a try if you haven't done it prior.
    Open that PDF>File>Save as Other>Reduced size PDF.
    If possible ,please share the snapshot of the error message with us so that we can have a look in order to assist you further.
    Regards
    Sukrit Dhingra

  • ITunes 12 'error occurred converting the file the disk is not available'

    Hi,
    looking for some advice on an issue with importing disks into iTunes 12.0.01.26 on Windows 7
    I import a CD and the first song generally imports successfully
    However I noticed the second song (or sometimes the fourth) fails with the following :
    'error occurred converting the file the disk is not available'
    I can manually untick the first songs that have imported successfully and re-import the remainder.
    Generally another song will import and the error will reoccur. I can continue this laborious process until the CD is fully imported
    I can rip CD's using Windows Media Player without any issue so it doesn't look like an optical drive issue
    I have checked under Preferences - Advanced and the iTunes media folder is apparent. I'm using an external drive for my iTunes Library.
    Attempts to Resolve
    I tested by setting up an iTunes library under my C:\ and the issue reoccurs.
    I've tried repairing the installation but it made no difference.
    I tried removing the iTunesPreferences.plist file - no difference
    I have switched off (and back on) the automatic prompt to import CD's
    Turned off and on error checking when importing CD's
    I have noticed the prompt to import the CD can pop up at least twice, often again when an import is underway
    I would be grateful for any suggestions on remedial steps I could take!
    Many Thanks
    Paul

    Hey Paul_Ramone,
    Sorry to hear you are having these issues with iTunes on your Windows machine. If you continue having issues importing tracks from CDs into iTunes (after the first track), you may find the information and troubleshooting steps outlined in the following articles helpful:
    iTunes 12 for Windows: Import songs from CDs (troubleshooting steps toward the bottom)
    iTunes for Windows: iTunes Diagnostics, CD/DVD Drive Tests - Apple Support
    Cheers,
    - Brenden

  • I am getting some errors while distilling the post script file.

    I am getting some errors while distilling the post script file. please check and suggest me, how to control this?
    <PDFX ISO="15930-1:2001" COMPLIANT="true">
    PDF/X Compliance Report
    1.  Summary
       Warnings: The total found in this document was 0.
       Violations: The total found in this document was 0.
       No problems were found in the document.
       This document passes PDF/X-1a:2001 compliance checks.
    </PDFX>
    Regards,
    Jack

    @Jack – you were using a joboptions file by Distiller to convert a PostScript file to a PDF/X-1a.
    What you get is no error message, just a report, that everything went ok. And in this case I cannot see any advantage using PDF Export for printing to PostScript/distilling to PDF. Ok, maybe one, CS5 and above would export in a background process.
    To prevent InDesign flattening transparency, you could use PDF/X-4 as your export setting. You cannot use writing to PostScript for that task.
    Check including tags for tagged export to prevent misalignment of text because of a strange bug with PDF Export when you are using 9pt text on 12pt leading or text with a ratio of 9/12 for point size and leading in multicolumn text frames.
    Uwe

  • How can I convert the ringtone (m4r file) I made into an mp3 file on itunes?

    How can I convert the ringtone (m4r file) that I made into an mp3 file on iTunes? I want to put it on a CD, but I can't figure out how to convert it. I didn't buy it, I made it by converting a YouTube video into an mp3 (I wanted to get the little song in the video for a ringtone.) I'm not sure what to do. 

    Hello ed2345,
    Thanks for the help, but this is not the problem.
    It's hard to describe the problem, but I'll try it again, this time with pictures.
    I was left with the following folders in the iTunes Downloads folder.
    http://www.picfront.org/d/7yb3
    These TMP Folders have a download.m4a and a Info.plist file.
    After moving the audio files in iTunes a bit I get this.
    http://www.picfront.org/d/7yb2
    As you can see no other Information for the download.m4a than the length.
    That's how the .m4p file looks like
    http://www.picfront.org/d/7yb1
    And this is how the same .m4a file currently looks
    http://www.picfront.org/d/7yb0
    Like I said, I could edit all these download.m4a files by myself but that would leave some information out.
    Note: Sorry, I hope the links do not spam you with annoying ads. I don't get any but I was told that there can be some annoying one.

  • How can I convert the ITHMB photo files to PC readable format like JPEG?

    How can I convert the ITHMB photo files on my new Iphone 4s to a PC readable format like JPEG

    Look at the link and follow instructions to convert the file taken from a different thread in this forum:
    https://discussions.apple.com/thread/2640386?start=0&tstart=0

  • Error  while accessing the application server file

    Hello,
    When I try to load the data from CSV file to PSA , I am getting following error message
    "Error  while accessing the application server file"
    "Errors in source system"
    I gave the right file path
    I am not sure about this error message.
    Thanks,

    Hi ram,
    if you have more than one application server running in your BI system (see at transaction SM51) be aware that your infopackage will be executed on the right one. Each application server has its own file system and your job need to run on the server your file is stored on.
    Also check if the os user of the SAP system itself (<sid>adm on Unix) has rights to read that file.
    Bye
    Frank

  • Error message -48: The itunes library file cannot be saved.

    Hello,
    When I open up my itunes i get an error message 48 - the itunes library file cannot be saved. All my data is there - music, podcasts etc. Just wondering if this error message means anything, if so what, and what I can do to fix it?
    Thanks!

    I just called Apple Support and I think they helped me, but I'm still waiting to see if the error message returns. I was experiencing the same problem. Whenever I started iTunes, I would get the -48 error message. Everything else was working fine. Apple Support instructed me to delete some files from a folder and restart my pc. I did this and it seems to have worked. The folder is on my C:/ drive. Using Windows Explorer, I went to my C:/ drive and then opened the following folders in this order: "Documents and Settings", "Administrator", "Application Data", "Apple Computer", "iTunes", "iPod Software Updates". Inside the iPod Software Updates folder, I found four files which I deleted. I then emptied my trash can and restarted my pc. After I restarted my pc and opened iTunes, the error message did not come up. So it looks like my problem has been solved. Just some minor glitch having to do with the last update. I should mention that I did just get an iPod Classic 80 gig which replaced my 30 gig iPod Photo which just died.

  • "The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file

    Hi Techys,
    can you give me the suugestions for below error in sharepoint 2010.
    Error: "The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file.
    User having the contribute permission.
    as a admin i can open the document without any error.
    user wants to open the document via online and VPN connection.
    while the user seeing the document info the below error is indicationg .
    Offline Copy, Work book is readonly Mode.
    The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file which was upto date.
    Many Thanks,
    Madhu

    Make sure that the user is able to access workstream from the site collection through VPN. If the user is able to access already, try to download the file locally and see if the data is getting loaded and upload again.
    --Cheers

  • Unable to convert the multiple PS files to pdf

    Hi
    I have distiller server 8 version we are unable to convert the multiple ps files to pdf.
    Here is the ps code:
    /prun { /mysave save def       % Performs a save before running the PS file
            dup = flush            % Shows name of PS file being run
            RunFile                % Calls built in Distiller procedure
            clear cleardictstack   % Cleans up after PS file
            mysave restore         % Restores save level
    } def
    (H:/705819_test.ps) prun
    (L:/Instruction sheet.ps) prun
    (H:/705820.ps) prun
    When we run this combine ps  through acrobat distiler it is fine, but through distiler server i couldnt get the pdf
    Could any one check and help me.
    Regards,
    Vinoth

    We couldnt convert the ps to pdf via distiller server?

  • "An error occurred creating the application.Check file system permission"

    Hi There ,
    I am facing a problem in creating a webcenter portal webapplication.
    I have followed the steps given in Help topics of Jdeveloper,but after performing all the steps i am getting this error
    "An error occurred creating the application.Check file system permission". Kindly help me to get through this error.
    Regards
    Vivek

    Hi Vivek,
    I hope this is the problem with permission.you Don't have Admin permission to access those folder.
    my Suggestion is
    1.use Administrator account(on windows) for develop applications(its give full access to the folder from your system). or
    2 open your JDeveloper as Administrator. (just right click on JDeveloper from you shortcuts or from programs run as Administrator)
    I hope this will be helpful.
    Best Regards
    Siva Sankar

  • I was installing an update when I got the error message that the MSVCR80.dll file was missing.  It wants me to reload itunes.  What do I do?

    I was installing an update when I ogt the error message that the MSVCR80.dll file was missing and windows error 126.  What do I do?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

  • I am getting error while converting the xml file to pdf

    Hi all,
    I am getting the error
    "Runtime exception when processing target-field mapping /ns0:MT_payment_rec/payment_rec/companycode; root message: Exception:[ExceptionConverter: java.io.IOException: The document has no pages.] in class com.sap.xi.tf._MM_Payment_Advice_ method calculate[a, com.sap.aii.mappingtool.tf7.rt.Context@2e0d7679]"
    I followed below  blog for converting xml to pdf
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1940
    in this blog they mentioned source & target path, but I read the values directly Through sender communication channel with out giving the source and target path in udf(calling the java code from imported archive, and excuted for converting xml to pdf file),
    but i am getting above error,
    Is there any possibility to return the converted pdf values to target field through udf
    Pls help me.

    Hi
    Can u tell us what is the function of the UDF in your case ?
    Apart from Converting the given input xml to pdf output, I dont see there is any other functionality within the UDF .. and  the XMLTOPDF Class requires the two inputs to be passed when it is instantiated in the code
    and now if you don't pass those parameters, it's going to throw an IO exception
    Regards
    Krishna

  • Error while converting the ITF format to PDF format

    Hi mates,
    I am working on a requirement where i need to download a pdf file on to my desktop. The requirement is:
    I have a data in ITF format which is fetched from READ_TEXT. Now  i need to convert this ITF data format into PDF format and download the pdf file on the desktop. for this what i have done is I have converted the ITF data to XSTRING first by using the FM 'LXE_CONVERT_ITF_XML'. Now i have converted the ITF data format to XSTRING data format. Then i have converted the XSTRING data format to Binary data format using FM 'SCMS_XSTRING_TO_BINARY'. Finally i have used the cl_gui_frontend_services=>gui_download to down load the data on to the desktop in pdf format....
    CALL METHOD cl_gui_frontend_services=>gui_download and passed the parameters and i am able to download the pdf file on desktop. But the problem is when I am opening the file its displaying the error message ' Adobe Reader could not open the file because it is either not a supported file type or because the file has been damaged' Any thoughts on this.... Share
    Regards,
    Mohammed Shukoor.

    Hi
    Can u tell us what is the function of the UDF in your case ?
    Apart from Converting the given input xml to pdf output, I dont see there is any other functionality within the UDF .. and  the XMLTOPDF Class requires the two inputs to be passed when it is instantiated in the code
    and now if you don't pass those parameters, it's going to throw an IO exception
    Regards
    Krishna

Maybe you are looking for

  • 4th Gen won't connect to internet even though it says it's connected

    Hello Apple Community! I have been using my (4th Gen) Time Capsule to back up my devices and for my household WiFi for about 2 years now. The other day, after a storm, my connectivity was down. I thought it was my ISP, but after bypassing the TC and

  • 1522 MAP through 1042 RAP not working

    I'm trying to mesh a 1522 MAP through a 1042 RAP but this doen´t work. I get strange messages on the trap log: 1 Mon Mar 26 18:40:19 2012 Mesh child node 'f0:25:72:d9:69:6f' has changed its parent to mesh node '58:35:d9:c6:60:10' from mesh node '58:3

  • Crystal reports not working when integrated security is set to true

    Hello Everybody, I have developed 20 crystal reports. When i deploy in my development environment(asp.net) these reports are working fine.My UAT environment is using application pool connection instead of database connection. My .net developer has wr

  • Automatic Freight price on Sales Order with minimum total freight for order

    Hi, I am stuck trying to solve a freight pricing scenario on sales orders and I was hoping that someone might have seen this problem before. There are a number of basic requirements: 1. The freight should be calculated automatically. 2. The freight s

  • Upgrade 9i to 11g

    hi friends i want to upgrade from 9i to 11g can some one provide url to download 9i software for database i want step by step document url (which is very clear )to upgrade to 11g OS-WINDOWS please provide document (url link)for upgrade if any patches