I am new to salesforce and apex as well. trying to use to understand both while working. I was wondering about following things
Is it possiable to run the Java code inside Salesforce, instead of Apex?
Is it possible to have packages in the Apex code so that I could enable the like wide classed together?
Is there any easy way to debug an Apex application on my local system? At present I am trying to put system.debug and execute it with Salesforce.
Can I configure the environment variable in the salesforce and use it in the Apex?
Thanks a lot for helping me out
You cannot run Java. Only Apex.
Not sure what you mean by packages. Apex doesn't have anything like Java packages.
There is no local debugging or local engine. Only runs in the cloud.
For environment variables, custom settings are probably the closest analog.
You can't work with java directly in salesforce. But you can use Salesforce in your local java application and it sync your data with salesforce. I used it before and it's pretty easy, try to google it.
you can also go with database.com + heroku/amazon if you want to develop with different language in salesforce platform
Just started with Apex and Salesforce myself. I realize this is an old post but here is my advice so far. Use Install java 1.6, Helios eclipse, and then the force.com ide plugin. In that order.
Related
Hope everything is fine.
I have an old ionic v1 project.
The project was using sms features.
however after google update:
I received
Issue: Violation of the Permissions policy
We only allow apps to access Call Log or SMS data for permitted uses and only to enable the app’s core functionality
Google has removed my app.
I need to rebuild it again after fixing the issue.
Now we have ionic v 4.1.0.
My project structure is missed up.
The earlier developer, was using cord-ova, ionic,phone gap... etc
Any suggestions ?
I was finding myself in a similar situation. The best and fastest way in this case would be to start a new project while you have the other one open and try to copy as much code as you can. I hope that helps, good luck!
I am facing a few problems when trying to integrate the force.com ide with salesforce.com.
Currently i am using eclipse(4.22 Juno) and have installed the plugin Force.com IDE(2.9) and have a developers version in salesforce.com. I was able to successfully connect to salesforce without any errors thru force.com ide, by creating a new application with the name of the application that i have created in the web version.
Right now the application is created with the sub folders classes, triggers etc... but they are empty. I also tried setting the proxy in the connections of eclipse. But even that does not seem to work.
Does anybody have any idea what could be wrong.
Thanks--
Can you post the content of your package.xml file? It's kind of project definition, it contains info which files (objects, classes, pages, reports, profiles...) you want to download & push changes to.
Check http://wiki.developerforce.com/page/An_Introduction_to_Force.com_Metadata for example - have you skipped step similar to this?
This is my first time with google apis and I am having trouble implementing the email settings api in eclipse .Please tell me exactly which jar files are to be included and how ? I am getting GmailSettingsService class not found error.Please Help
Thank you
From here:
Didn't you ever want some kind of tool to create new Google Data projects in seconds? Google Data Java Client Eclipse
Plug-in is now available for use.
Using this plug-in you can create a new Java project to interact with
any Google Data API of your choice. Now, you don't need to worry about
setting up the dependencies for your Google Data project. This plug-in
handles all the dependencies and also provides you with an option to
download the external dependencies. It also creates a boiler plate
code to interact with the API that you are interested in. This will
give a quick start to all the newbies.
I am doing a survey about cloud paltforms and I have the following the question:
Is it possible to upload a Java/PHP/Python/etc application on Force.com just like you can do with Google App Engine, Heroku, Openshift, etc.?
I looked at the Salesforce website but I couldnt reach a certain conclusion. If I understood correctly, you can upload the code on Heroku and then integrate the application with features of Force.com or something like that.
Could someone shed some light here? Thnx
Force.com has his own language to run custom code on server. This language is called APEX.
Apex is a strongly-typed, object-oriented programming language that
lets you centralize and execute flow and transaction control
statements on the Force.com platform in conjunction with application
calls to Force.com APIs. Using syntax that looks like Java and acts
like database stored procedures, Apex lets you add powerful custom
business logic to most system events, including button clicks, related
record updates, and Visualforce pages. Web service requests and
database triggers on objects can also initiate the execution of Apex
code.
More info in the official apex doc
But you can't upload to salesforce servers any kind of standard code like php/python. If you need to develop your own app using php/python/java + salesforce-api's you will have to upload/run this code on your own server.
Heroku and database.com are closer to what you're after. Heroku will let you upload you Python/Java etc. app and then you can easily connect it to Salesforce-style database.
By "style" I mean one in which you can still use this Apex language in triggers for example or expose pieces of Apex to be called via webservices. Such webservices could be used like "stored procedures" in classic solutions - if you'd want to keep part of the logic on the Force.com side rather than in your app.
Martin's answer is very good. If it's not immediately obvious - there's a "vendor lock-in". You can't run this Apex code anywhere else, only on SF server. There's no open source equivalent like LAMP stack for PHP, Tomcat for Java etc.
I think it will make sense for you to read these 2 questions from "related" sidebar: Disadvantages of the Force.com platform and
https://stackoverflow.com/questions/3363333/anyone-moved-off-force-com. They're a bit negative but for your pros/cons type of comparison should give you some highlights.
The application(JSF+hibernate) is been deployed using the vmc commands as on the cloudfoundry site. able to see the welcome page. postgreSQl service is binded with the application but the application is not able to connect with the database.
And also viewed about the VCAP_SERVICES using java but dont know much about it rather how to create it.
Cloud Foundry uses auto-reconfiguration if you have one service (either MySQL or Postgres) bind to your application. That means you don't need to touch your code at all!
Please review the following article on our docs site:
http://docs.cloudfoundry.com/frameworks/java/spring/spring.html#using-cloud-foundry-services-in-spring-applications
If you still have issues, go ahead and upload a war file of your app and we can take a look.