Is Windows Azure cspack.exe open source? - java

I'm trying to pack my Java Azure project in Mac and I cannot find the source code for cspack.exe. So far, I've managed to run Azure Eclipse plugin and successfully created a project but when trying to deploy it cannot run cspack.exe.
I've downloaded Windows Azure Tools and seen CsPack.cs up to the following lines
// Run CsPack to generate the package
ProcessHelper.StartAndWaitForProcess(
new ProcessStartInfo(Path.Combine(AzureSdkBinDirectory, Resources.CsPackExe),
args), out standardOutput, out standardError);
And I don't really know if this component it's open source or not.
If cspack.exe is proprietary, is there any way to simulate cspack.exe. I know it compresses the project to a zip file but I could use any documentation.

cspack.exe is not open source. It will is packed into the Azure SDK which can be downloaded and installed. There is something Open Source like jJack said, but this is only the API which can be used in a Java, .NET or whatever program, to get access to your configurations, mounting a cloud drive or something else.
The eclipse plugins is using a cspack.exe.jar, which is a commandline wrapper for the original cspack Application.
Azure SDK for Mac can be downloaded Azure SDK. Don't know if the Eclipse plugin is capable to work on Mac yet.

It looks like WindowsAzure4j is open source so if this is what you are using then you are in luck. I would try downloading This and look for the full CsPack.cs file, maybe you can glean the source of the problem from it?

Related

AWSToolkit for Eclipse --- Deploy Serverless Project Hangs at 10%

I'm going through the AWS Serverless Tutorial using the Eclipse plugin found here...
https://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/serverless-projects.html
I simply used the HelloWorld blueprint and then selected to Deploy Serverless Project as the tutorial states. In the progress view I see..
Deploying Serverless template to AWS CloudFormation.
https://forums.aws.amazon.com/
Deploying Serverless template to AWS CloudFormation.: Uploading Lambda function to S3...
At the bottom right I see 10%
But it never gets past this point. There's no error and opening the AWS CloudFormation in the AWS Explorer shows nothing.
I left it running over night. No luck. I've tried changing the JDK and ensured it was on Java 8 (OpenJDK8). No help there. I've tried installing the latest eclipse (2021-09) and reinstalling the AWSTookKit. Same issue.
In the AWS Explorer view in Eclipse I can see my EC2 instances, My S3 buckets (including the one created for the HelloWorld project), My DynamoDB instances I have created in the past. So I believe it is all hooked up properly in terms of credentials etc.
I see that it has packaged up the project into a zip file which appears to be 8.3MB in size. I assume this is what it's trying to send to the S3 but something isn't happy?
Would be great to have a view to see what it's getting stuck on so I can resolve the issue. Any suggestions?
This may help you.
Instead of running the latest Eclipse IDE for Enterprise Java and Web Developers, Version: 2022-03 (4.23.0), Build id: 20220310-1457, I went and downloaded an older version:
https://www.eclipse.org/downloads/packages/release/oxygen/2
Then I installed AWS Toolkit for Eclipse, and I was able to deploy the hello-world serverless Lambda without problems. I'll see if I can develop much more complex Lambda with this environment instead.
Update
In fact, the underlying problem is the error:
"Unable to complete transfer: javax/xml/bind/JAXBException"
Which I discovered when I try to drag&drop a file into an S3 bucket via AWS Explorer.
And the fix is mentioned here: https://github.com/aws/aws-toolkit-eclipse/issues/123.
Essentially, get a copy of the JAXB API JAR, e.g. jaxb-api-2.3.1.jar, into the Eclipse plugins folder, e.g. C:\Users\XXX\eclipse\jee-2022-03\eclipse\plugins. Then add a -dev option after -startup and --launch.library in the Eclipse.ini file:
-startup
...
--launch.library
...
-dev
C:\Users\XXX\eclipse\jee-2022-03\eclipse\plugins\jaxb-api-2.3.1.jar
This fixed the problem for me.

How to run php file in eclipse juno

I am new to PHP.
I am using eclipse juno. Now, I want to use PHP in my eclipse. So, I installed the PHP plugins using new software installation.
I need two things to do.
1.created a PHP project, and php file but I am not able to run the PHP file. When I try to run it, it is showing
Page load failed with error : Could not connect to server.
2.I have a project already in eclipse, I need to add a PHP file to it.
First of all is it possible or not.
I am able to create a PHP file but even here also I am not able to run the PHP file. It is not showing any output, when I run it on tomcat server. I read that I need to download php-java-bridge.war file, I downloaded it but don't know how to add to the project.
To run PHP file you need a server running which understands how to handle php files.
One of the ways to do that is to run apache web server with php installed.
If you want to use tomcat and php-java-bridge.war, from what I see on their website, you probably need to create a new project from extracted war and start adding files to it.
First of all,we need to download and install the XAMP web server which is used to run the php files.
You can see how to download and installing XAMP in mac in this below video.
https://www.youtube.com/watch?v=h4m2k1Cmx8I
To run the PHP files, first start the MySql Database, Apache Web Server, and ProFTPD in the XAMP server. And also, we need to create the project inside the htdocs folder. If you want to run a PHP file in the existing project, you can store a copy of that project in this folder.
This will help to run the PHP files.
I am a PHP Developer and It's better to use other IDE like Zend Studio and PHP JetStorm and as they are not free you know how to get it.You are newbie to php so I would highly recommend Zend Studio IDE as it is made from Eclipse and has the integrated debugger in it.
Just refer to this link
What is the best IDE for PHP?

Open PDF file in Android

Hello I want to open PDF file in Android app, I found this apv pdf reader in code.google and it is recommended by alot.
I checked the setup page and it is assume you are using Linux and I am Windows user + I am not good in configure libraries.
Can you show me how to configure it in windows and integrate in my app?
OR
if there is good tutorial for that?
The instructions provided work for Windows as well. You need to install cygwin and then follow those instructions from a cygwin prompt to build the libraries. It looks like you'll also need to install Android NDK.

How to deploy MIDlet application use eclipse?

I am using EclipseME to write MIDlet application.
I have deployed by right click on Project->J2ME->Create Package.
After that, I copied Jad and Jar files in Deploy folder to My phone.
For BlackBerry: When I run Jad file, it is installed successful. And run ok.
For Android: When I run jar file, it popup message "open file failed".
Please tell me how to deploy MIDlet app by using Eclipse for all cell phone that can run it.
Android phones can't runt J2ME.
Directly you can't run Java ME application on android. But You can use some alternative ways like App runner or J2ab.
For Android you should develop an application using android sdk. Better you read the android documentation. Search android in google. It will help you.

How to make installer pack of Java swing Application Project?

I've created a java project using swing application with JMF. I've tried to convert it into package but it failed.
The jar can be created but it won't work in other computer (Windows). Can someone know the answer? Please tell me.
I need to package the project as installer and it would work in other system. Guide me for this.
This link gives a list of opensource installers for java applications:
http://java-source.net/open-source/installer-generators
I'd recommend izpack, its used by a lot of software like jedit, scala installer, etc.
You can try install4j. (Its not free though, you may try evaluation version first)
Here is list of Open Source Installers Generators in Java :
http://java-source.net/open-source/installer-generators
I have used Install4j and it works
You can use the install4j for the create exe file for jar file of java project and use the Inno Setup Compiler file for create the installer for the project.
this ts Youtube vedio for the how to create the exe and installer
video for create the exe and installer

Categories