Adding directory/* to classpath - eclipse-juno

I want to run my application using the Eclipse equivalent of 'java -cp "mydir/*" '. That is, I want to make use of class path wild cards as described here http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html.
Is there a way for me to do this in Eclipse (Juno)? Perhaps a plugin?

Follow mentioned steps in Eclipse:
Right Click on the project
Click on "Run As"
Click on "Run Configurations"
Access "Classpath" tab
Select "User Entries" and click on "Advance"
Select option "Add Folders"/"Add External Folder" and click "OK"
Select appropriate folder and click "Apply"
Last "Run"

Related

My DataGrip run/debug configuration wrong and can`t run SQL console script

I am learning mySQL and practice basic syntax using DataGrip. Unkownly, I can`t run my console script.
For example,I enter SELECT * FROM table in the console window,and click the green button 'run', But it can`t run as ususal.
I assume you go to the context menu and press 'Run console_1' or used the green arrow on the upper toolbar. This actually created a run configuration for the whole script. And it is noе what you needed. To run just a single query:
Use the green arrow button on the console toolbar.
Or the shortcut: Cmd+Enter
Or in the context menu choose Execute

How in PhpStorm in “Find in path” dialog to select search in the directory of the active file?

If there is a way in PhpStorm 2019.2.3 opening “Find in path” dialog to select search in the directory of the active file ?
MODIFIED :
When I start new session in my PHPStorm and
having active file in one of subdirectories : https://imgur.com/a/tQbhlI9
I open “Find in path” dialog and see : https://imgur.com/a/UZp5KmE
“In project” tab is active and in found files I see files found from all the project.
I open “Directory” tab and see error : https://imgur.com/a/e4rtCdH
Are there some options To Search In the current directory?
Is something wrong in config of my PhpStorm 2019.2.3 ?
Thanks!
To search in the directory of the current file, you need to take 3 steps:
Open the Project Navigation bar
Click the select opened file button on the project toolbar or press ALT+F1 followed by 1 (At least that's what the combination is on the Sublime Text Keymap)
Press Ctrl+Shift+S or go to Edit -> Find -> Find in Path (or select the parent folder of your file in the project toolbar and right click to select find in path)
Alternatively you can right click the file tab and copy the path to enter it in the directory option of find in files.

PhpStorm Find all Instances in current remote file

I am trying to get a list of search results for a string in the current file which is opened from a remote host. CTRL F only highlights the instances in the doc but does not give me an easy overview. If I have a file downloaded to my project folder I can press CTRL SHIFT F for "find in path" and then CTRL ENTER to open the find window. complicated but better than nothing.
Is there a simple "find all in current file" command, disregarding whether its a project file or a remote file?
Click on All button on Find toolbar and it will list all found entries in a standard "Find Results" toolwindow.

BIDS "Start Debugging" button not working

This is a very strange issue. In BIDS/Visual Studio, the "Start Debugging" button does not run the active package that I am working on. Instead it opens another package in the project (always the same one) and runs that one instead. I can only run the active package by right clicking on it in Solution Explorer and selecting "Execute Package". I run BIDS on three separate machines and the other two machines do not do this. Is this button programmable? I have not found any setting for this button.
Has anyone else seen this?
In your Project Properties (right click on the project), under the Debugging tab you should have an option for setting a StartObjectID. By Default, this is <Active Package> but if you have an actual package selected here, then that would correlate with the behaviour you are describing.
you can also try this.
open a new ssis project,then import this package which is not debugging into the project.
steps.
create new project->SSIS packages->right click->add existing packages.
You can also right-click the package you want to use as the main package and set it up to be the starting project. Right-click the package in Solution Explorer and select "Set as StartUp Object" from the menu.

How do I use phalcon-devtools\ide\phpstorm in phpstorm?

I am trying to integrate the Phalcon developer tools with phpstorm. There is a video here, but I am unable to view it due to my location.
I can't find any other usable reference in the documentation, how can I accomplish this?
Here are the steps.
Make sure you have the phalcon-devtools installed Instructions
Create a project using phalcon-devtools (unless you already have a project)
Launch PHPStorm and create the project there (unless you already did that).
Click File-Settings (Ctrl+Alt+S) (or PHPStorm-Preferences for Mac)
Click the second option "Command Line Tool Support"
Click the + icon and a new popup comes up. Make sure you have "Custom Framework" selected
In the new popup type:
Framework: Phalcon
Tool path: /Applications/MAMP/htdocs/phalcon-tools/ide/phpstorm/phalcon.sh
Alias: phalcon
Description: Phalcon Developer Tools
This assumes that your phalcon-tools have been installed under:
/Applications/MAMP/htdocs/phalcon-tools/
Also if you use a Windows environment, you should use phalcon.bat instead of phalcon.sh (see Tool Path line above)
Click Apply and then OK.
Click Tools - Run Command (Ctrl+Shift+X)
In the Commands output window, type:
phalcon commands
You should be able to see output. If there is an error check your path. Type any of the phalcon-tools commands to generate components for your project.
In PHPStorm you should see in the project explorer "External Libraries". Right mouse click and select "Configure PHP Include Paths"
In the new dialog click the + and navigate to the /Applications/MAMP/htdocs/phalcon-tools/ide/phpstorm/0.5.0 folder and click OK.
Now as you type code, the relevant helper popup will appear with all the relevant functions.
2012-09-07: There is a beta implementation of the Phalcon PHPStorm support for 0.5.0 here. In the upcoming weeks the code will become part of the framework and included with the 0.5.0 version.
I had some problems with the execution of the phalcon.bat file on my Windows Dev machine, no PHP installed, so i research a much simpler solution for phpstorm.
Simply do following:
click on "External Libraries"
click on "Configure PHP Includes Paths..."
click on add
add "phalcon-devtools\ide\[YOUR_VERSION_DIRECTORY]"
Than you have code completion for phalcon:-)
If you see the Phalcon module loaded in phpinfo page in your WAMP server, do the following to get loaded the module in CLI mode too.
Copy <WAMP INSTALATION >\bin\apache\<APACHE VERSION >\bin\php.ini to \bin\php\<PHP VERSION>\
Set php PATH to <WAMP INSTALATION>\bin\php\<PHP VERSION>\
That should solve the problem.
It has since been changed,
"As part of our restructuring and working towards a better more robust framework in terms of features as well as organization, we have removed the IDE stubs from the Phalcon DevTools repository and moved to its own repository."
The new instructions are located here:
https://blog.phalconphp.com/post/phalcon-ide-stubs-repository